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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x4c3790]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x24]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
push ebx
xor ecx, ecx
mov ebx, edx
shr ebx, 1
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
jmp 0x438064
mov ebx, dword [esp + 0x1c]
movsx esi, word [edi + 0x4c]
mov eax, dword [edi + esi*4 + 0x78]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x4380a5
cmp byte [eax + 1], 0
je 0x438237
lea ecx, [edi + 0x7c]
push ecx
call fcn.00437ee0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x438237
xor ecx, ecx
mov dword [edi + 0x4c], 1
mov word [edi + 0x50], cx
jmp 0x438064
cmp byte [eax + 1], 0
jne 0x4380b7
movzx edx, word [eax + 0x10]
cmp edx, ebx
jle 0x438237
movzx eax, word [edi + esi*2 + 0x4c]
mov ebx, dword [edi + esi*4 + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jbe 0x4380e3
push eax
call fcn.0042cfa0
add esp, 4
jmp 0x4380e8
call fcn.0042cdf0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x438178
mov eax, dword [esp + 0x14]
cmp byte [eax + 3], 0
je 0x438133
cmp byte [eax + 1], 1
jne 0x438133
mov cx, word [eax + 0x16]
cmp cx, word [eax + 0x12]
jne 0x438133
cmp dword [ebx + 0x48], 1
je 0x438133
movzx edx, word [ebx + 0x12]
cmp edx, dword [esp + 0x18]
jne 0x438133
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
call fcn.00436d00
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x438178
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x20]
call fcn.00427a20
movzx ecx, byte [edi + 0x4a]
xor edx, edx
cmp esi, 1
sete dl
push ecx
mov ecx, eax
mov dword [esp + 0x24], eax
push edx
mov edx, dword [esp + 0x20]
push ebx
call fcn.00436f60
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], eax
test esi, esi
je 0x438170
call fcn.00427b30
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov byte [eax + 1], 0
mov eax, dword [eax + 0x44]
test byte [eax + 0x18], 0x40
mov ebx, dword [eax + 0x10]
je 0x4381cc
dec dword [ebx + 0x78]
mov ecx, dword [ebx + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x88], eax
mov esi, dword [ecx]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x98]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004a9340
push edx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call edx
add esp, 0x10
jmp 0x4381d1
call fcn.004275b0
cmp dword [ebx + 0x78], 0
jne 0x438228
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x438228
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x438223
test al, al
je 0x438223
cmp al, 2
jb 0x438211
mov eax, dword [0x4c73c4]
test eax, eax
je 0x4381fd
call eax
mov eax, ebx
call fcn.0042d470
mov eax, dword [0x4c73c8]
test eax, eax
je 0x438223
call eax
jmp 0x438223
cmp byte [ebx + 4], 0
jne 0x438223
push 0
push 0
call fcn.00429b80
add esp, 8
call fcn.00429a10
dec word [edi + 0x4c]
cmp dword [esp + 0xc], 0
je 0x438060
mov esi, dword [esp + 0x10]
test esi, esi
je 0x438244
call fcn.00427b30
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.00495b13
mov esp, ebp
pop ebp
ret