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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x504a89
sub esp, 0x74
mov eax, dword [esp + 0x78]
cmp byte [eax + 0x49], 0xff
je 0x504352
lea eax, [0x6a01a0]
mov dword [esp], eax
call fcn.004784a0
lea eax, [0x559420]
cmp dword [esp + 4], eax
jne 0x5042d5
mov ebx, dword [esp + 8]
jmp 0x5042e7
lea eax, [0x56b300]
mov dword [esp], eax
call fcn.0040bd30
mov ebx, dword [esp + 4]
mov dword [esp + 0x64], ebx
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x9c]
cmp ecx, edx
jg 0x504304
ja 0x504a83
mov dword [ebx + 0x28], ecx
jmp 0x50434b
lea eax, [0x5609a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00449500
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x64]
mov dword [edx + 0x28], ecx
mov dword [edx + 0x2c], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x504346
call fcn.00460f00
mov dword [edi], eax
mov ebx, dword [edx + 0x24]
mov dword [edi + 4], ebx
mov dword [edx + 0x24], eax
mov ebx, edx
mov edx, dword [ebx + 0x28]
xor eax, eax
jmp 0x504383
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x74
ret
mov ebp, dword [ebx + 0x24]
mov dword [ebp + eax*4], 0xffffffff
inc eax
cmp eax, edx
jge 0x504393
mov ecx, dword [ebx + 0x28]
cmp eax, ecx
jb 0x504377
jmp 0x504a7e
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5043e6
nop
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x14], eax
mov eax, dword [0x6c4f80]
test eax, eax
jne 0x5043b6
mov eax, dword [esp + 0x80]
jmp 0x5043ca
call fcn.00460f00
mov eax, dword [esp + 0x80]
mov dword [edi], eax
mov ecx, dword [ebx + 0x18]
mov dword [edi + 4], ecx
mov dword [ebx + 0x18], eax
mov byte [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
lea eax, [ebx + 0x14]
lea ecx, [0x5c08c0]
jmp 0x504466
mov eax, dword [esp + 0x84]
test eax, eax
je 0x504428
nop
mov ecx, dword [esp + 0x88]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [ebx + 8], ecx
mov ecx, dword [0x6c4f80]
test ecx, ecx
je 0x50441c
call fcn.00460f00
mov dword [edi], eax
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
mov dword [ebx], eax
lea ecx, [0x5c0908]
mov eax, ebx
jmp 0x504466
nop
mov eax, dword [esp + 0x94]
mov dword [ebx + 0x10], eax
mov eax, dword [0x6c4f80]
test eax, eax
jne 0x504446
mov eax, dword [esp + 0x90]
jmp 0x50445a
call fcn.00460f00
mov eax, dword [esp + 0x90]
mov dword [edi], eax
mov ecx, dword [ebx + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0xc]
lea ecx, [0x5c08e4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], ecx
mov edx, dword [ecx + 0x20]
mov dword [esp], eax
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
call edx
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
cmp eax, 0xffffffff
jne 0x50449f
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x5044d2
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x20]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebp, dword [esp + 0x98]
lea esi, [ebp + ecx]
mov dword [esp + 4], esi
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0x98]
test ebp, ebp
jne 0x5044ee
mov esi, eax
mov edi, 0xffffffff
jmp 0x504523
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 4], ebp
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp eax, ecx
jbe 0x504a73
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edi
lea eax, [ecx + ecx*8]
test ebp, ebp
je 0x504553
xor eax, eax
jmp 0x504591
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov byte [esp + 8], al
call fcn.00503280
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
test al, al
je 0x5045d2
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x5045a0
xor eax, eax
jmp 0x5045d4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x60]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
jmp 0x5045d4
xor eax, eax
test al, al
jne 0x5045e1
mov eax, dword [esp + 0x3c]
jmp 0x50469e
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x18]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov dword [esp + 4], edx
call ecx
movzx eax, byte [esp + 8]
test al, al
je 0x5046b3
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x98]
add ecx, edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 0x20]
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], ecx
call ebx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
mov ebx, dword [esp + 0x54]
lea ebp, [ebx + eax]
mov esi, dword [esp + 8]
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 4], ebp
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 8]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 4], esi
call ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov eax, edx
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
jmp 0x5047d3
xor eax, eax
test al, al
je 0x504784
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0xa4]
lea ebx, [edx + ecx]
mov ebp, dword [eax + 0x24]
mov esi, dword [esp + 0xa8]
cmp esi, ebx
jb 0x5046e5
mov edi, dword [esp + 0xa0]
jmp 0x504731
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
lea eax, [0x5609a0]
mov dword [esp + 0x10], eax
call fcn.004495c0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x6c]
mov edi, eax
mov esi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x6c], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.004617e0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.005041c0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xb4], eax
add esp, 0x74
ret
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.005041c0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 0x74
ret
mov dword [esp + 0x28], edi
mov edi, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x34], ebp
mov ebp, edx
mov edx, dword [esp + 0x78]
mov edx, ecx
mov ecx, ebx
mov ebx, edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov edx, dword [edx + 0xc]
mov eax, dword [edx + 4]
cmp ecx, eax
jae 0x504a68
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], esi
mov edx, dword [edx]
lea eax, [ecx + ecx*8]
lea ecx, [edx + eax*4]
movzx ecx, byte [ecx]
lea ebx, [edx + eax*4]
mov dword [esp + 0x68], ebx
mov ebx, dword [edx + eax*4 + 4]
mov dword [esp + 0x4c], ebx
cmp cl, 5
ja 0x5048f0
mov dword [esp + 0x48], edi
cmp cl, 2
ja 0x504899
cmp cl, 1
jbe 0x504860
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 0x28]
cmp eax, ecx
jge 0x50483d
jae 0x504a63
mov ecx, dword [edx + 0x24]
mov dword [ecx + eax*4], ebp
mov eax, dword [esp + 0x3c]
mov esi, edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5047b5
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.005050b0
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5047b5
cmp cl, 3
jne 0x5049e4
mov eax, dword [edx + eax*4 + 8]
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov byte [esp + 8], al
call fcn.00503280
movzx eax, byte [esp + 0xc]
test al, al
je 0x5049dd
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5047b5
cmp cl, 7
ja 0x504945
cmp cl, 6
jne 0x50491d
mov eax, dword [esp + 0x3c]
mov esi, edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x5047b5
lea eax, [edx + eax*4]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.004fd950
cmp dword [esp + 8], 0xffffffff
je 0x504a1c
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
jmp 0x50497a
cmp cl, 8
jne 0x504963
mov edi, dword [edx + eax*4 + 0x10]
mov edx, dword [edx + eax*4 + 0xc]
test edi, edi
jbe 0x504a50
cmp dword [edx], esi
je 0x50497a
jmp 0x504a23
cmp cl, 9
je 0x50497a
cmp cl, 0xa
jne 0x504a38
cmp esi, 0xa
je 0x504a31
mov edx, dword [esp + 0x28]
test edx, edx
je 0x504a2a
add edx, ebp
mov ebp, dword [esp + 0x34]
cmp ebp, 0xffffffff
jne 0x504999
mov eax, ebp
mov ecx, dword [esp + 0x54]
jmp 0x5049d4
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebp, dword [esp + 0x54]
lea esi, [edx + ebp]
mov dword [esp + 4], esi
call ecx
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov ebp, eax
mov ecx, ebx
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
jmp 0x5047b5
xor eax, eax
jmp 0x5046b5
cmp cl, 4
jne 0x504a15
mov edx, dword [esp + 0x64]
mov ebx, dword [edx + 0x28]
test ebx, ebx
je 0x504a0b
mov ebx, dword [edx + 0x24]
mov dword [ebx], 0
mov ecx, dword [edx + 0x28]
cmp ecx, 1
jbe 0x504a59
mov eax, dword [edx + 0x24]
mov dword [eax + 4], ebp
mov eax, 1
jmp 0x5046b5
xor eax, eax
jmp 0x5046b5
xor eax, eax
jmp 0x5046b5
xor eax, eax
jmp 0x5046b5
xor eax, eax
jmp 0x5046b5
xor eax, eax
jmp 0x5046b5
lea eax, [0x560820]
mov dword [esp], eax
lea eax, [0x5c0350]
mov dword [esp + 4], eax
call fcn.00435490
xor eax, eax
mov ecx, eax
call fcn.00460f60
mov eax, 1
call fcn.00460f60
call fcn.00460f70
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.00460f60
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.00460f60
call fcn.00460f60
call fcn.00460fa0
nop
call fcn.0045faf0
jmp fcn.00504290