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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5cd2d9
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
call fcn.00504ae0
test eax, eax
je 0x5050d0
mov eax, dword [0x63680c]
mov ecx, dword [0x636818]
cmp eax, ecx
je 0x504ccc
push eax
call fcn.00504bb0
mov eax, dword [0x63680c]
add esp, 4
mov dword [0x636818], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call fcn.00504bf0
mov eax, dword [esp + 0xc]
add esp, 4
cmp eax, ebx
je 0x5050d0
push 0x70b28c
push 0x1388
push 0x709ef0
call fcn.00504af0
mov eax, dword [0x70b28c]
add esp, 0xc
cmp eax, 0xd
jbe 0x5050d0
mov byte [esp + 0x74], bl
mov byte [esp + 0x7b], bl
mov dword [esp + 0xd8], ebx
mov byte [esp + 0x86], bl
mov byte [esp + 0x8d], bl
mov esi, 0x64
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
push 7
lea ecx, [esp + 0x9c]
mov byte [esp + 0xdc], 2
mov dword [esp + 0xc4], ebx
call fcn.0040b8a0
mov dword [esp + 0xcc], 1
mov dword [esp + 0xc8], 1
mov dword [esp + 0xd8], 3
mov byte [esp + 0x60], bl
mov byte [esp + 0x67], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x3f], bl
push ebx
push 0x709ef0
lea ecx, [esp + 0x40]
mov byte [esp + 0xe0], 5
call fcn.0040bd70
push ebx
push 0x709ef6
lea ecx, [esp + 0x68]
call fcn.0040bd70
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
push 7
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 6
call fcn.0040b8a0
mov eax, dword [0x70b28c]
cmp eax, 0x2a
jne 0x504f09
cmp byte [0x709efd], 6
jne 0x504f21
mov dl, byte [0x709f04]
mov al, byte [0x709f05]
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0xcc
mov byte [esp + 0x1c], 7
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
mov byte [esp + 0x4c], bl
mov byte [esp + 0x53], bl
push 0x709f06
lea ecx, [esp + 0x50]
mov byte [esp + 0xdc], 7
call fcn.0040bec0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040bed0
mov dl, byte [0x709f0c]
mov cl, byte [0x709f0e]
mov al, byte [0x709f0d]
mov byte [esp + 0x27], dl
mov dl, byte [0x709f0f]
mov byte [esp + 0x29], cl
push 0x709f10
lea ecx, [esp + 0x50]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2e], dl
call fcn.0040bec0
lea eax, [esp + 0x2b]
lea ecx, [esp + 0x4c]
push eax
call fcn.0040bed0
mov dl, byte [0x709f17]
mov cl, byte [0x709f16]
mov al, byte [0x709f18]
mov byte [esp + 0x33], dl
lea edx, [esp + 0x18]
push 0x1e
push edx
push 0xcd
push ebx
mov byte [esp + 0x42], cl
mov cl, byte [0x709f19]
push ebx
push ebx
mov byte [esp + 0x4c], al
push 1
mov byte [esp + 0x51], cl
push 0xa
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.0040d490
mov ecx, dword [esp + 0xe0]
push ebx
lea edx, [esp + 0x78]
push ebx
mov eax, dword [ecx]
push edx
push 0x8c
call dword [eax + 4]
jmp 0x50504d
cmp eax, 0x1388
jae 0x50504d
cmp byte [0x709efd], 6
je 0x50504d
cmp dword [0x636810], ebx
je 0x505001
push edi
lea ecx, [esp + 0x3c]
mov edi, 0x625cbc
call fcn.0040b820
mov esi, eax
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x504f66
cmp al, bl
je 0x504f62
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x504f66
add esi, 2
add edi, 2
cmp al, bl
jne 0x504f3e
xor eax, eax
jmp 0x504f6b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
pop edi
jne 0x504ffc
mov eax, dword [esp + 0x14]
mov byte [esp + 0xd8], 5
cmp eax, ebx
je 0x504fa1
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00425060
push ecx
push 0x12
push eax
call fcn.00573a14
push esi
call fcn.0058ed21
add esp, 4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd8], 0xa
cmp eax, ebx
mov dword [esp + 0x98], ebx
je 0x504fc7
push eax
call fcn.0058ed21
add esp, 4
mov ecx, dword [esp + 0xa0]
mov byte [esp + 0xd8], 9
cmp ecx, ebx
je 0x5050d0
push 3
call fcn.0040b620
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
add esp, 0xd4
ret
mov eax, dword [0x70b28c]
add eax, 0xfffffff2
lea edx, [esp + 0xc]
push eax
push 0x709efe
push 0xcc
push ebx
push ebx
push ebx
push 1
push 0xa
push ebx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.0040d490
mov ecx, dword [esp + 0xe0]
push ebx
lea eax, [esp + 0x78]
push ebx
mov edx, dword [ecx]
push eax
push 0x8c
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov byte [esp + 0xd8], 5
cmp eax, ebx
je 0x50507a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00425060
push ecx
push 0x12
push eax
call fcn.00573a14
push esi
call fcn.0058ed21
add esp, 4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd8], 0xd
cmp eax, ebx
mov dword [esp + 0x98], ebx
je 0x5050a0
push eax
call fcn.0058ed21
add esp, 4
mov eax, dword [esp + 0xa0]
mov byte [esp + 0xd8], 0xc
cmp eax, ebx
je 0x5050d0
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00425060
push edx
push 0x12
push eax
call fcn.00573a14
push esi
call fcn.0058ed21
add esp, 4
mov ecx, dword [esp + 0xd0]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xd4
ret