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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x100]
cmp eax, dword [ecx + 8]
jbe 0x504c34
sub esp, 0x180
mov eax, 0
lea edi, [esp + 0xe0]
call fcn.004485c3
mov eax, dword [esp + 0x184]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x54], edx
lea ebx, [0x5d2f60]
mov dword [esp], ebx
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
lea edi, [esp + 0xc4]
xor eax, eax
call fcn.004485c9
lea edi, [esp + 0x114]
call fcn.004485b5
lea ecx, [esp + 0x114]
mov dword [esp + 0xd0], ecx
call fcn.00438f00
mov eax, dword [esp]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x184]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x504c24
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
jne 0x504b07
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0x58]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
cmp eax, 0x19
jne 0x504b07
lea eax, [esp + 8]
mov dword [esp + 0x70], eax
xor ecx, ecx
xor edx, edx
jmp 0x504785
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 1]
mov edx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x54]
mov ebx, dword [eax + 0x64]
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jge 0x50495b
mov eax, dword [esp + 0x54]
mov edx, dword [eax + 0x2c]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
call edx
lea edi, [esp + 0xe0]
mov esi, dword [esp + 0x70]
call fcn.00448a5e
lea eax, [esp + 0xe0]
mov dword [esp], eax
call fcn.005091a0
movzx eax, byte [esp + 4]
test al, al
jne 0x5047ef
mov eax, dword [esp + 0x3c]
jmp 0x50477c
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xf0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0xc4]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x188]
mov dword [esp + 0xc], ecx
call fcn.00503db0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
lea edi, [esp + 0xac]
mov edx, eax
xor eax, eax
call fcn.004485ca
mov ecx, dword [edx]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb0], ecx
mov edx, dword [esp + 0x108]
mov ebx, dword [esp + 0x104]
mov ebp, dword [esp + 0x10c]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebp
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x64]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
mov esi, dword [edx]
lea edi, [ebp + 1]
cmp edi, ebx
jg 0x5048eb
lea ebx, [ebp + 1]
mov dword [edx + 4], ebx
mov ebx, dword [0x79e7b0]
lea ebp, [ebp + ebp*2]
lea edi, [esi + ebp*8]
test ebx, ebx
jne 0x5048c6
lea esi, [esp + 0xac]
call fcn.00448aa4
mov ecx, dword [esp + 0x3c]
inc ecx
mov eax, ecx
jmp 0x50477c
lea eax, [0x5dd300]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xac]
mov dword [esp + 8], eax
call fcn.0040d9d0
xor eax, eax
mov edx, dword [esp + 0x64]
jmp 0x5048ba
lea eax, [0x5dd300]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
call fcn.004350a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 8], edx
mov edx, dword [0x79e7b0]
test edx, edx
jne 0x504939
mov dword [ebx], eax
mov edx, ebx
mov ebp, ecx
mov esi, eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
jmp 0x504897
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x64]
jmp 0x504928
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x64]
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
test eax, eax
jle 0x504afe
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x5049d7
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x50498d
mov eax, dword [eax + 4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x78], eax
lea eax, [0x60341f]
mov dword [esp], eax
mov dword [esp + 4], 0x1e
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00506450
lea edi, [esp + 0x94]
xor eax, eax
call fcn.004485ca
lea ecx, [0x609b98]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
mov eax, ecx
lea ecx, [ebx + 1]
cmp ecx, edx
jg 0x504a92
lea ecx, [ebx + 1]
mov dword [eax + 4], ecx
lea ecx, [ebx + ebx*2]
lea edi, [ebp + ecx*8]
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x504a6f
lea esi, [esp + 0x94]
call fcn.00448aa4
mov dword [esp + 0x18c], eax
add esp, 0x180
ret
lea eax, [0x5dd300]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x94]
mov dword [esp + 8], eax
call fcn.0040d9d0
mov eax, dword [esp + 0x64]
jmp 0x504a61
lea eax, [0x5dd300]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.004350a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 8], edx
mov edx, dword [0x79e7b0]
test edx, edx
jne 0x504adc
mov dword [ebx], eax
mov ebx, ecx
mov ebp, eax
mov eax, dword [esp + 0x64]
jmp 0x504a3e
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x64]
jmp 0x504acf
mov ecx, dword [esp + 0x64]
jmp 0x5049d7
lea eax, [0x5dd300]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00434f20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov eax, dword [0x79e7b0]
test eax, eax
jne 0x504c13
mov dword [ebx], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
lea eax, [esp + 0xc4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x188]
mov dword [esp + 0xc], eax
call fcn.00503db0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
lea edi, [esp + 0x7c]
mov edx, eax
xor eax, eax
call fcn.004485ca
mov eax, dword [edx]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x64]
mov edi, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
jbe 0x504c2d
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x504bf0
lea esi, [esp + 0x7c]
call fcn.00448aa4
jmp 0x504a61
lea eax, [0x5dd300]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.0040d9d0
mov eax, dword [esp + 0x64]
jmp 0x504a61
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0040d8c0
jmp 0x504b4b
mov eax, ecx
mov ecx, edx
jmp 0x504743
call fcn.00424360
ud2
call fcn.00446b60
jmp fcn.00504690