Function at 0x665c4050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x2dc
mov ebx, dword [ebp + 4]
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x2f0]
mov dword [esp + 0x20], edx
lea edi, [esp + 0x90]
mov edx, dword [esp + 0x2f4]
mov dword [esp + 0x24], ecx
mov ecx, 0xe
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp]
lea eax, [eax + eax*2]
mov dword [esp + 0x34], ebx
shl eax, 4
add eax, dword [ebx + 0x14]
mov dword [esp + 0x18], eax
xor eax, eax
rep stosd dword es:[edi], eax
movzx eax, byte [esi + 0x10]
mov edx, dword [edx + 4]
mov edi, dword [ebx + 0x14]
lea eax, [eax + eax*8]
lea ecx, [edx + eax*8 + 8]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x18], edi
jbe 0x665c40fb
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], ebp
mov ebp, esi
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x44], eax
test byte [edi + 0xd], 2
je 0x665c40f2
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x198]
mov edx, dword [ecx + 0x19c]
and eax, dword [ebp + 8]
and edx, dword [ebp + 0xc]
or edx, eax
jne 0x665c4118
add edi, 0x30
cmp dword [esp + 0x18], edi
ja 0x665c40d3
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
add esp, 0x2dc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*2]
shl eax, 4
lea ebx, [esi + eax]
mov eax, dword [ecx]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x84], eax
lea eax, [ebp + 0x18]
mov dword [esp + 0x60], eax
cmp esi, ebx
jae 0x665c44d0
mov dword [esp + 0x68], edi
mov edi, esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x64], ebp
jmp 0x665c4250
mov eax, dword [edi + 0x18]
mov dword [esp + 0x78], eax
xor eax, eax
lea ebx, [esp + 0x74]
mov word [esp + 0xc8], ax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x665c42a8
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
call fcn.665ba040
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x665c42c7
movzx ebx, word [esp + 0xc8]
test bx, bx
je 0x665c44b9
mov eax, dword [esp + 0x50]
test eax, eax
je 0x665c42f0
mov word [esp + 0x90], bx
lea eax, [esp + 0x98]
shl ebx, 4
lea edx, [esp + 0xd0]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x50], 0
add edi, 0x30
cmp dword [esp + 0x54], edi
jbe 0x665c43f8
test byte [edi + 0xd], 4
jne 0x665c41a0
mov eax, dword [esp + 0x44]
cmp dword [edi + 0x14], eax
jne 0x665c4243
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov dword [esp + 0x13c], esi
mov byte [esp + 0x140], 0x2c
mov dword [esp + 0x138], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x144], 1
mov dword [esp + 0x14c], edi
mov dword [esp + 0x78], eax
jmp 0x665c41a7
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, ebx
call fcn.665c3790
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x665c41f5
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
call fcn.665c4050
mov dword [esp + 0x1c], eax
jmp 0x665c41f5
movzx esi, word [esp + 0x90]
lea eax, [esp + 0x98]
xor ebp, ebp
mov dword [esp + 4], eax
lea eax, [esp + 0x108]
mov edx, esi
mov dword [esp], eax
shl edx, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
mov word [esp + 0x90], bp
test esi, esi
je 0x665c4243
lea eax, [esp + 0x100]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x6c], edi
test bx, bx
je 0x665c43c2
mov eax, dword [esp + 0x58]
lea ebx, [esp + 0xc8]
xor edi, edi
movsx esi, word [eax + 0x12]
movsx ebp, word [eax + 0x10]
mov dword [esp + 0x38], esi
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
movsx edx, word [ebx + 0x12]
mov eax, dword [esp + 0x38]
add edi, 1
add ebx, 0x10
call fcn.665889f0
movsx edx, word [ebx]
movsx esi, ax
mov eax, ebp
call fcn.665889f0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cwde
or edx, dword [ebx - 8]
or ecx, dword [ebx - 4]
mov dword [esp + 4], esi
mov dword [esp], eax
lea eax, [esp + 0x90]
call fcn.6658d470
movzx eax, word [esp + 0xc8]
cmp eax, edi
jg 0x665c4374
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
add dword [esp + 0x58], 0x10
cmp eax, dword [esp + 0x5c]
jge 0x665c43e8
movzx ebx, word [esp + 0xc8]
jmp 0x665c4348
mov edi, dword [esp + 0x6c]
jmp 0x665c4243
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov eax, dword [ebp + 0x30]
mov ecx, 1
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov word [ebp + 0x28], cx
mov dword [eax], edi
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x24], 0x2000
mov word [ebp + 0x12], bx
mov byte [ebp + 0x11], 0
mov dword [ebp + 0x18], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
test esi, esi
jne 0x665c4103
xor esi, esi
mov dword [esp + 0x1c], edi
lea ebx, [esp + 0x90]
mov edi, esi
mov esi, dword [esp + 0x48]
jmp 0x665c4492
movzx eax, word [ebx + 0x10]
mov edx, dword [ebx + 0xc]
add edi, 1
add ebx, 0x10
add eax, 1
mov word [ebp + 0x14], ax
movzx eax, word [ebx + 2]
mov word [ebp + 0x16], ax
mov eax, dword [ebx - 8]
mov dword [ebp + 4], edx
mov edx, ebp
mov dword [ebp], eax
mov eax, esi
call fcn.66592ea0
test eax, eax
jne 0x665c44b0
movzx eax, word [esp + 0x90]
cmp eax, edi
jg 0x665c4460
mov edi, dword [esp + 0x1c]
jmp 0x665c40f2
mov dword [esp + 0x1c], eax
jmp 0x665c4103
xor eax, eax
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov word [esp + 0x90], ax
jmp 0x665c4400
mov eax, 1
xor edx, edx
mov word [ebp + 0x28], ax
mov eax, dword [ebp + 0x30]
mov dword [eax], edi
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x24], 0x2000
mov word [ebp + 0x12], dx
mov byte [ebp + 0x11], 0
mov dword [ebp + 0x18], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x665c4444