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

Disassembly:
mov eax, 0x674dae
call fcn.006313fc
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x24], ecx
and dword [esp + 0x34], ebx
test ecx, ecx
je 0x503ca7
cmp byte [ebp + 0x30], bl
jne 0x503ca7
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
mov byte [ebp + 0x30], 1
mov dword [ebp + 0x3c], ebx
mov dword [esp + 0x18], ebx
cmp dword [ebp + 0x78], 0
je 0x503f1c
and dword [esp + 8], 0
push esi
push edi
lea esi, [ebp + 0xc]
mov byte [esp + 0x3c], 1
mov dword [esp + 0x1c], esi
test esi, esi
je 0x503cce
mov eax, dword [esi]
push esi
call dword [eax + 4]
and dword [esp + 0x18], 0
mov byte [esp + 0x3c], 2
mov dword [esp + 0x24], esi
test esi, esi
je 0x503ce6
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [esp + 0x24]
mov byte [esp + 0x3c], 3
push eax
lea ecx, [esp + 0x14]
call fcn.005fecff
mov byte [esp + 0x3c], 2
test esi, esi
je 0x503d08
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x503d70
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
test eax, eax
je 0x503d29
lea eax, [esp + 0x10]
push eax
call fcn.00501b4b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
add ebp, eax
lea ecx, [esp + 0x24]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x30]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.005fecff
mov eax, dword [esp + 0x24]
mov byte [esp + 0x3c], 2
test eax, eax
je 0x503d60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x503d14
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
mov ecx, 0x76b93c
call fcn.0049a9f6
push dword [esp + 0x18]
call fcn.0045d923
mov ebp, eax
mov dword [esp + 0x30], ebp
mov byte [esp + 0x3c], 5
mov dword [esp + 0x24], esi
test esi, esi
je 0x503da8
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [esp + 0x24]
mov byte [esp + 0x3c], 6
push eax
lea ecx, [esp + 0x14]
call fcn.005fecff
mov byte [esp + 0x3c], 5
test esi, esi
je 0x503dca
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x503e37
mov esi, ebp
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
mov dword [esp + 0x24], esi
mov ecx, edi
add esi, eax
mov eax, dword [edi]
call dword [eax + 0x20]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
push eax
push dword [esp + 0x2c]
call fcn.00631810
mov eax, dword [edi]
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, edi
call dword [eax + 0x30]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 7
call fcn.005fecff
mov eax, dword [esp + 0x28]
mov byte [esp + 0x3c], 5
test eax, eax
je 0x503e2b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x503dd4
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push 0
push dword [edi + 0x3c]
mov eax, dword [edi]
lea ecx, [edi + 0x34]
push dword [esp + 0x20]
push ebp
push dword [edi + 0x44]
push dword [edi + 0x40]
push ecx
mov ecx, edi
call dword [eax + 0x3c]
mov dword [edi + 0x58], eax
lea ecx, [esp + 0x10]
lea eax, [edi + 0x78]
push eax
call fcn.005fecff
mov edi, dword [esp + 0x10]
test edi, edi
je 0x503eb6
mov esi, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [esi + 0x58]
call dword [eax + 0x58]
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x30]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 8
call fcn.005fecff
mov eax, dword [esp + 0x28]
mov byte [esp + 0x3c], 5
test eax, eax
je 0x503eaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x503e72
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x3c], 2
test ebp, ebp
je 0x503ec7
push 1
push ebp
call fcn.0045d916
mov byte [esp + 0x3c], 1
test esi, esi
je 0x503ed6
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [esp + 0x3c], 0
test edi, edi
je 0x503ee5
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ebp, dword [esp + 0x14]
pop edi
pop esi
mov ecx, 0x76bd9c
call fcn.00500678
or dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x3c], eax
test ebx, ebx
je 0x503f0d
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [esp + 0x2c]
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, ebp
call fcn.00503584
jmp 0x503eeb