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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x3c]
test eax, 0x1000
je 0x438554
mov ecx, dword [esp + 0x40]
jmp 0x438564
mov ecx, dword [esp + 0x40]
test ecx, 0x1000
jne 0x438564
cmp ecx, eax
jne 0x4385a2
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea edx, [0x4388b0]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x24]
mov dword [esp], edx
call fcn.0045e740
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x4385b9
mov esi, dword [esp + 0x20]
lea edx, [esi + 1]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x38]
test byte [esi], al
lea edi, [esi + 0x48]
mov dword [esp + 0x30], edi
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004024a0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x43869d
mov eax, dword [esp + 0x3c]
cmp eax, 4
jne 0x438613
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00402480
cmp dword [esp + 4], 1
je 0x43888a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x438625
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
jmp 0x43863a
call fcn.00460900
mov ebp, dword [esp]
mov ebx, dword [esp + 4]
add ebp, 0x1388
adc ebx, 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
call fcn.00460900
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
sete al
setg dl
mov ebx, dword [esp + 0x18]
cmp dword [esp], ebx
xchg ebp, ebx
setb bl
xchg ebp, ebx
and eax, ebp
or edx, eax
test dl, dl
je 0x438674
xor eax, eax
jmp 0x438849
nop
lea eax, [0x497e6c]
mov dword [esp], eax
call fcn.0045e740
call fcn.00460900
mov ebp, dword [esp]
mov ebx, dword [esp + 4]
add ebp, 0x9c4
adc ebx, 0
jmp 0x4385aa
mov eax, dword [esp + 0x3c]
cmp eax, 2
jne 0x4386d2
movzx ecx, byte [0x54a6f1]
test cl, cl
je 0x4386b7
mov ecx, dword [esp + 0x38]
jmp 0x4386c4
mov ecx, dword [esp + 0x38]
movzx edx, byte [ecx + 0x73]
test dl, 7
jne 0x4386c8
mov byte [ecx + 0x72], 1
movzx edx, byte [ecx + 0x73]
inc edx
mov byte [ecx + 0x73], dl
jmp 0x4386d6
mov ecx, dword [esp + 0x38]
movzx edx, byte [ecx + 0x72]
test dl, dl
je 0x43882c
cmp eax, 1
je 0x438759
cmp eax, 4
jne 0x438755
movzx eax, byte [ecx + 0x64]
cmp al, 0x15
je 0x4386ff
cmp al, 0x16
je 0x4386ff
cmp al, 0x17
jne 0x438751
nop
call fcn.00460900
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x78]
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
lea esi, [0x50d1e8]
mov dword [esp], esi
sub ebx, ecx
sbb ebp, edx
mov ecx, ebx
shl ebx, 3
mov dword [esp + 4], ebx
shl ebp, 3
shr ecx, 0x1d
or ebp, ecx
mov dword [esp + 8], ebp
call fcn.00402590
mov eax, dword [esp + 0x38]
mov dword [eax + 0x74], 0
mov dword [eax + 0x78], 0
jmp 0x438798
mov eax, ecx
jmp 0x438798
mov eax, ecx
jmp 0x438798
nop
call fcn.00460900
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x74]
mov ebp, dword [eax + 0x78]
mov esi, dword [esp]
mov edi, dword [esp + 4]
sub esi, ebx
sbb edi, ebp
add esi, ecx
mov dword [eax + 0x7c], esi
adc edi, edx
mov dword [eax + 0x80], edi
mov dword [eax + 0x74], 0
mov dword [eax + 0x78], 0
mov ecx, dword [esp + 0x40]
cmp ecx, 1
je 0x438811
cmp ecx, 2
je 0x4387d7
cmp ecx, 4
jne 0x438828
movzx ecx, byte [eax + 0x64]
cmp cl, 0x15
je 0x4387be
cmp cl, 0x16
je 0x4387be
cmp cl, 0x17
jne 0x438828
nop
call fcn.00460900
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x38]
mov dword [edx + 0x74], eax
mov dword [edx + 0x78], ecx
jmp 0x438828
mov byte [eax + 0x72], 0
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x80]
lea ebx, [0x50ccd0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004082e0
mov eax, dword [esp + 0x38]
mov dword [eax + 0x7c], 0
mov dword [eax + 0x80], 0
jmp 0x438828
nop
call fcn.00460900
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x38]
mov dword [edx + 0x74], eax
mov dword [edx + 0x78], ecx
add esp, 0x34
ret
add esp, 0x34
ret
mov dword [esp], 1
call fcn.0045f8a0
mov eax, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp eax, 0xa
jl 0x438856
xor edx, edx
jmp 0x43887b
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00402480
mov eax, dword [esp + 0x3c]
cmp dword [esp + 4], eax
setne cl
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, ecx
mov ecx, dword [esp + 0x1c]
test dl, dl
jne 0x438830
mov ebx, ecx
mov ebp, dword [esp + 0x18]
jmp 0x4385aa
lea eax, [0x4970ba]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.00433e00
nop
int3