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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, eax
cmp byte [ebx + 0x49], 4
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebx]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], eax
jne 0x438290
mov eax, dword [ebx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
mov edi, dword [ebx + 0x3c]
test eax, eax
je 0x4382c7
lea ebx, [ebx]
cmp eax, ebx
je 0x4382ad
test edi, edi
je 0x4382b6
cmp dword [eax + 0x3c], edi
je 0x4382b6
mov eax, dword [eax + 8]
test eax, eax
jne 0x4382a0
jmp 0x4382c7
test eax, eax
je 0x4382c7
call fcn.00430c90
test eax, eax
jne 0x438464
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 0x10]
jne 0x43832d
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
test eax, eax
je 0x4382fd
mov cl, 0x10
lea esp, [esp]
test byte [eax + 0x48], cl
je 0x4382f6
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp + 0xc]
jne 0x4382f6
cmp dword [eax + 0x1c], edi
jne 0x4382f6
mov byte [eax + 0x49], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4382e0
test byte [ebx + 0x48], 2
je 0x43832d
test edi, edi
jl 0x43832d
jg 0x43830f
cmp dword [ebp + 0xc], 0
jbe 0x43832d
mov eax, dword [ebp + 0xc]
sub eax, 1
mov ecx, edi
sbb ecx, 0
cmp dword [ebx + 0x18], eax
jne 0x43832d
cmp dword [ebx + 0x1c], ecx
jne 0x43832d
mov dword [ebp - 8], 0xffffffff
jmp 0x438353
cmp dword [ebp + 0x24], 0
jne 0x438353
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push edx
mov edx, dword [ebp + 8]
push edi
push eax
call fcn.00430d00
add esp, 0x10
test eax, eax
jne 0x438464
movsx ecx, word [ebx + 0x4c]
mov esi, dword [ebx + ecx*4 + 0x78]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x50]
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edi
push ecx
push edx
mov dword [ebp - 0x10], eax
push eax
mov eax, esi
call fcn.004365e0
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
jne 0x438464
movsx eax, word [ebx + 0x4c]
mov ecx, dword [ebp - 8]
movzx edi, word [ebx + eax*2 + 0x4e]
lea eax, [ebx + eax*2 + 0x4e]
test ecx, ecx
jne 0x43840d
mov eax, dword [esi + 0x44]
call fcn.0042d160
test eax, eax
jne 0x438464
mov ecx, dword [esi + 0x40]
movzx eax, byte [ecx + edi*2]
movzx edx, byte [ecx + edi*2 + 1]
lea ecx, [ecx + edi*2]
movzx ecx, word [esi + 0x14]
shl eax, 8
or eax, edx
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x4383e1
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], edx
lea edx, [ebp + 0x24]
push edx
mov ecx, esi
call fcn.00436440
movzx ecx, word [ebp + 0x24]
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.004369d0
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x438464
jmp 0x43841c
jns 0x43841c
cmp word [esi + 0x12], 0
jbe 0x43841c
inc word [eax]
movzx edi, word [eax]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
push 0
push eax
push ecx
push edi
xor eax, eax
mov ecx, esi
call fcn.00436ab0
mov eax, dword [ebp - 4]
xor edx, edx
add esp, 0x14
mov word [ebx + 0x2c], dx
test eax, eax
jne 0x438464
cmp byte [esi + 1], dl
je 0x438464
and byte [ebx + 0x48], 0xfd
mov edi, ebx
call fcn.00438020
movsx ecx, word [ebx + 0x4c]
mov edx, dword [ebx + ecx*4 + 0x78]
mov byte [edx + 1], 0
mov byte [ebx + 0x49], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret