Function at 0x503830
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.005257a0
cmp eax, 1
jne 0x503850
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 0x503a95
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503882
cmp eax, 0x54
je 0x503882
cmp eax, 0x41
je 0x503882
cmp eax, 0x52
jne 0x503a95
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0xb0]
xor ebx, ebx
cmp ecx, ebx
jne 0x503c2e
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x68]
test eax, eax
je 0x503c2e
mov edi, dword [esi + 0x30]
mov dword [esp + 0x10], 0x5f7544
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
test byte [edi + 9], 8
jne 0x5038cd
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 0x503a2f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x8c]
push 1
push 0x10
mov ecx, 0x63b5d4
call fcn.004e1dd0
cmp eax, ebx
je 0x503904
mov dword [eax], 0x5f753c
mov dword [eax + 0xc], edi
jmp 0x503906
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.004e6190
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x3c], 2
jne 0x503936
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 0x503a80
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.00556920
cmp eax, 1
je 0x5039d3
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x3c], 2
jne 0x50399f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
cmp eax, 0x15
jne 0x50399f
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.00556920
cmp eax, 1
je 0x503a03
cmp edi, dword [esi + 0x30]
je 0x5039b7
test edi, edi
je 0x5039b0
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 0x503942
lea ecx, [esp + 0x10]
call fcn.004e6350
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret 4
cmp edi, dword [esi + 0x30]
je 0x5039eb
test edi, edi
je 0x5039e4
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov dword [ebx + 0xc], 0
lea ecx, [esp + 0x10]
call fcn.004e6350
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret 4
cmp edi, dword [esi + 0x30]
je 0x503a17
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov dword [ebx + 0xc], 0
lea ecx, [esp + 0x10]
call fcn.004e6350
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.00556920
cmp eax, 1
mov eax, dword [esi + 0x30]
jne 0x503a70
cmp edi, eax
je 0x503a58
cmp edi, ebx
je 0x503a58
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
lea ecx, [esp + 0x10]
call fcn.004e6350
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret 4
cmp edi, eax
je 0x503a80
cmp edi, ebx
je 0x503a80
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x10]
call fcn.004e6350
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 0x503aa2
cmp eax, 0x54
jne 0x503abf
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.00502f30
mov eax, dword [esi + 0x40]
test eax, eax
je 0x503b1e
mov edi, dword [eax]
test edi, edi
je 0x503b8a
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 0x503c30
test byte [edi + 0x98], bl
jne 0x503b0f
cmp dword [edi + 0x90], eax
jne 0x503b0f
push ebp
mov ecx, edi
call fcn.00503830
cmp eax, 1
je 0x5039f4
mov ecx, edi
call fcn.004ecf40
mov edi, eax
test edi, edi
jne 0x503ad2
jmp 0x503b8a
mov edx, dword [esi + 0x44]
mov edi, dword [edx]
test edi, edi
je 0x503b6c
mov bl, 0x20
lea esp, [esp]
test byte [edi + 0x8a], bl
jne 0x503b5f
cmp word [edi + 0x66], 0
jg 0x503b4c
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503b4c
cmp eax, 0x54
jne 0x503b5f
push 1
push ebp
mov ecx, edi
call fcn.00503300
cmp eax, 1
je 0x5039f4
mov ecx, edi
call fcn.004ecf40
mov edi, eax
test edi, edi
jne 0x503b30
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503b8a
cmp eax, 0x54
je 0x503b8a
mov eax, dword [ebp]
push 0x60ec2c
push eax
call fcn.00502000
add esp, 8
mov eax, dword [esi + 0x50]
test eax, eax
je 0x503bd6
mov edi, dword [eax]
test edi, edi
je 0x503bd6
test byte [edi + 0x125], 8
jne 0x503bb1
push ebp
mov ecx, edi
call fcn.00503120
cmp eax, 1
je 0x5039f4
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 0x503c30
mov ecx, edi
call fcn.004ecf40
mov edi, eax
test edi, edi
jne 0x503b97
mov eax, dword [ebp + 0x14]
cmp eax, 0x43
je 0x503be3
cmp eax, 0x54
jne 0x503c2e
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 8]
mov ax, word [eax + 0x22]
test ax, ax
mov ebp, dword [ebp]
je 0x503c2e
movzx eax, ax
lea ecx, [eax + eax*2]
mov edx, dword [ecx*4 + 0x63c468]
cmp byte [edx], 0
je 0x503c2e
lea ecx, [esp + 0x20]
call fcn.004ea010
mov edx, dword [esp + 0x20]
push edx
push str.___s_
push 1
push ebp
call fcn.00502260
mov ecx, dword [esp + 0x30]
add esp, 0x10
call fcn.004dc6a0
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret 4