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

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x28]
call fcn.00525800
cmp eax, 1
jne 0x5038e0
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x38], 2
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push edi
jne 0x503b25
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503912
cmp eax, 0x54
je 0x503912
cmp eax, 0x41
je 0x503912
cmp eax, 0x52
jne 0x503b25
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0xb0]
xor ebx, ebx
cmp ecx, ebx
jne 0x503cbe
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x68]
test eax, eax
je 0x503cbe
mov edi, dword [esi + 0x30]
mov dword [esp + 0x10], 0x61b564
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
test byte [edi + 9], 8
jne 0x50395d
mov ecx, edi
mov eax, dword [ecx]
push 1
push esi
call dword [eax + 0xb0]
mov edi, eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 8]
cmp dword [eax + 0x3c], 2
jne 0x503abf
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x8c]
push 1
push 0x10
mov ecx, 0x675cd4
call fcn.004e1e00
cmp eax, ebx
je 0x503994
mov dword [eax], 0x61b55c
mov dword [eax + 0xc], edi
jmp 0x503996
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.004e61c0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x3c], 2
jne 0x5039c6
mov eax, dword [esi + 0x28]
or byte [eax + 9], 8
mov eax, dword [esi + 0x28]
mov edx, dword [edi]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [edx + 0x90]
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x503b10
inc dword [ebp + 4]
mov dword [ebp + 8], 0
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 8]
movzx eax, word [eax + 0x24]
mov edi, dword [ebx + 0xc]
push 0
push esi
push eax
push ebp
mov ecx, edi
call fcn.005569a0
cmp eax, 1
je 0x503a63
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x3c], 2
jne 0x503a2f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
cmp eax, 0x15
jne 0x503a2f
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 8]
xor edx, edx
mov dx, word [eax + 0x24]
push 0
push esi
mov ecx, edi
push edx
push ebp
call fcn.005569a0
cmp eax, 1
je 0x503a93
cmp edi, dword [esi + 0x30]
je 0x503a47
test edi, edi
je 0x503a40
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov dword [ebx + 0xc], 0
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x5039d2
lea ecx, [esp + 0x10]
call fcn.004e6380
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret 4
cmp edi, dword [esi + 0x30]
je 0x503a7b
test edi, edi
je 0x503a74
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov dword [ebx + 0xc], 0
lea ecx, [esp + 0x10]
call fcn.004e6380
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret 4
cmp edi, dword [esi + 0x30]
je 0x503aa7
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov dword [ebx + 0xc], 0
lea ecx, [esp + 0x10]
call fcn.004e6380
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret 4
xor ecx, ecx
mov cx, word [eax + 0x24]
push ebx
push esi
push ecx
push ebp
mov ecx, edi
call fcn.005569a0
cmp eax, 1
mov eax, dword [esi + 0x30]
jne 0x503b00
cmp edi, eax
je 0x503ae8
cmp edi, ebx
je 0x503ae8
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x10]
call fcn.004e6380
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret 4
cmp edi, eax
je 0x503b10
cmp edi, ebx
je 0x503b10
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x10]
call fcn.004e6380
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503b32
cmp eax, 0x54
jne 0x503b4f
mov ecx, dword [esi + 0x2c]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp]
xor edx, edx
mov dx, word [eax + 0x24]
movzx eax, word [eax + 0x22]
push 0
push edx
push eax
push ecx
call fcn.00502fc0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x503bae
mov edi, dword [eax]
test edi, edi
je 0x503c1a
mov bl, 0x40
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx + 0xd8]
mov eax, 1
cmp edx, eax
je 0x503cc0
test byte [edi + 0x98], bl
jne 0x503b9f
cmp dword [edi + 0x90], eax
jne 0x503b9f
push ebp
mov ecx, edi
call fcn.005038c0
cmp eax, 1
je 0x503a84
mov ecx, edi
call fcn.004ecf70
mov edi, eax
test edi, edi
jne 0x503b62
jmp 0x503c1a
mov edx, dword [esi + 0x44]
mov edi, dword [edx]
test edi, edi
je 0x503bfc
mov bl, 0x20
lea esp, [esp]
test byte [edi + 0x8a], bl
jne 0x503bef
cmp word [edi + 0x66], 0
jg 0x503bdc
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503bdc
cmp eax, 0x54
jne 0x503bef
push 1
push ebp
mov ecx, edi
call fcn.00503390
cmp eax, 1
je 0x503a84
mov ecx, edi
call fcn.004ecf70
mov edi, eax
test edi, edi
jne 0x503bc0
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503c1a
cmp eax, 0x54
je 0x503c1a
mov eax, dword [ebp]
push 0x632c4c
push eax
call fcn.005020b0
add esp, 8
mov eax, dword [esi + 0x50]
test eax, eax
je 0x503c66
mov edi, dword [eax]
test edi, edi
je 0x503c66
test byte [edi + 0x125], 8
jne 0x503c41
push ebp
mov ecx, edi
call fcn.005031b0
cmp eax, 1
je 0x503a84
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + 0x30]
mov ecx, dword [edx + 0x28]
mov edx, dword [ecx + 0xd8]
mov eax, 1
cmp edx, eax
je 0x503cc0
mov ecx, edi
call fcn.004ecf70
mov edi, eax
test edi, edi
jne 0x503c27
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503c73
cmp eax, 0x54
jne 0x503cbe
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 8]
mov ax, word [eax + 0x22]
test ax, ax
mov ebp, dword [ebp]
je 0x503cbe
movzx eax, ax
lea ecx, [eax + eax*2]
mov edx, dword [ecx*4 + 0x676b68]
cmp byte [edx], 0
je 0x503cbe
lea ecx, [esp + 0x20]
call fcn.004ea050
mov edx, dword [esp + 0x20]
push edx
push str.___s_
push 1
push ebp
call fcn.00502310
mov ecx, dword [esp + 0x30]
add esp, 0x10
call fcn.004dc710
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret 4