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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xd4]
cmp eax, dword [ecx + 8]
jbe 0x5152d5
sub esp, 0x154
mov eax, dword [esp + 0x160]
test eax, eax
jle 0x5152a8
mov ecx, dword [esp + 0x16c]
test ecx, ecx
jle 0x515296
mov edx, dword [esp + 0x158]
lea ebx, [edx + eax*4 - 4]
mov ebp, dword [esp + 0x164]
lea esi, [ebp + ecx*4 - 4]
cmp ebx, esi
jne 0x515252
xor eax, eax
xor edx, edx
xor ebx, ebx
mov esi, dword [esp + 0x180]
cmp esi, 1
jne 0x515246
mov edi, dword [esp + 0x17c]
cmp dword [edi], 1
je 0x515226
mov edi, dword [esp + 0x174]
test edi, edi
je 0x5151d2
cmp edi, 1
jne 0x5151c6
mov edi, dword [esp + 0x170]
cmp dword [edi], 1
jne 0x514651
test esi, esi
jne 0x515149
test esi, esi
je 0x51465d
cmp eax, esi
jl 0x5150b6
nop
mov ebx, dword [esp + 0x168]
cmp eax, ebx
jl 0x515017
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x168]
cmp ebx, eax
jle 0x515010
mov dword [esp + 0x48], ebx
mov dword [esp + 0x150], edx
cmp edx, ebp
je 0x5146a2
mov dword [esp], edx
mov dword [esp + 4], ebp
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045b690
mov eax, dword [esp + 0x164]
mov dword [esp], eax
mov ecx, dword [esp + 0x168]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x16c]
mov dword [esp + 8], edx
mov ebx, dword [0x816150]
mov ebp, dword [0x816154]
mov esi, dword [0x816158]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.0050f4e0
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x514ffd
mov edx, dword [esp + 0x174]
cmp edx, 1
jle 0x514ff1
mov ebx, dword [esp + 0x180]
test ebx, ebx
jg 0x514eb2
mov ebp, dword [esp + 0x170]
mov esi, dword [ebp + edx*4 - 4]
nop
nop
cmp esi, 0x10000
jb 0x514ea9
mov edi, esi
shr esi, 0x10
mov eax, 0x10
cmp esi, 0x100
jb 0x514ea0
shr esi, 8
mov ecx, ebp
lea ebp, [eax + 8]
cmp esi, 0x100
jae 0x5152c8
mov eax, ebx
lea ebx, [0x7e6380]
movzx ebx, byte [ebx + esi]
lea ebx, [ebx + ebp - 0x20]
neg ebx
lea ebp, [ebx + 1]
cmp ebp, 0x20
sbb esi, esi
mov ecx, ebp
shl edi, cl
and edi, esi
add ebx, 0xffffffe1
neg ebx
mov dword [esp + 0x5c], ebx
xor ecx, ecx
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor esi, esi
mov dword [esp + 0x58], esi
xor ecx, ecx
mov dword [esp + 0x14c], ecx
xor ecx, ecx
mov dword [esp + 0x68], ecx
xor ecx, ecx
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x148], ecx
xor ecx, ecx
mov dword [esp + 0xb4], ecx
xor ecx, ecx
mov dword [esp + 0xb0], ecx
xor ecx, ecx
mov dword [esp + 0x144], ecx
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
xor ecx, ecx
jmp 0x514830
mov ebp, dword [esp + 0x78]
inc ebp
shl ebx, 1
mov dword [esp + 0x150], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xb0], ecx
mov eax, dword [esp + 0x180]
mov ecx, ebp
mov edi, ebx
mov ebp, edx
mov esi, dword [esp + 0x120]
mov edx, dword [esp + 0x174]
mov ebx, dword [esp + 0x5c]
cmp ebx, ecx
jle 0x514a9e
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x14c]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
call fcn.00511650
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x60]
test ebx, 0x80000000
jne 0x5149f9
mov ebp, dword [esp + 0x180]
test ebp, ebp
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xa8]
jne 0x514908
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x14c], eax
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x108], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x108]
jmp 0x5147d7
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x140], eax
mov ebx, dword [esp + 0x150]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x148]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x17c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x184]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xb4]
mov edi, dword [esp + 0x144]
mov dword [esp + 0x14c], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x148], edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x144], eax
mov edx, esi
mov ecx, ebp
mov eax, ebx
mov edi, dword [esp + 0xb4]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x180]
mov esi, dword [esp + 0xb0]
jmp 0x5147d7
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x130], eax
mov ebx, dword [esp + 0x150]
mov dword [esp], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x164]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x168]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x16c]
mov dword [esp + 0x20], esi
call fcn.00510610
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x180]
test ebp, ebp
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x150], ebx
mov ebx, dword [esp + 0x60]
jmp 0x5148b3
lea ebx, [edx - 2]
mov edi, dword [esp + 0x170]
mov ecx, dword [esp + 0x144]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x100]
jmp 0x514e11
mov ebp, dword [esp + 0x74]
inc ebp
shl ebx, 1
mov dword [esp + 0x74], ebp
mov ebp, edx
mov dword [esp + 0x150], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov edi, ebx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xb0], edx
mov eax, dword [esp + 0x180]
mov edx, dword [esp + 0x174]
mov ebx, dword [esp + 0x7c]
mov esi, ecx
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x74]
cmp edx, 0x20
jge 0x514dc7
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x14c]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
call fcn.00511650
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x60]
test ebx, 0x80000000
jne 0x514d22
mov ebp, dword [esp + 0x180]
test ebp, ebp
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x94]
jne 0x514c31
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x70], eax
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x144], edx
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xb8]
jmp 0x514ae6
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x138], eax
mov ebx, dword [esp + 0x150]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x148]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x17c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x184]
mov dword [esp + 0x2c], esi
call fcn.00511ff0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xb0]
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x14c], edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x138]
mov dword [esp + 0x148], edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x144], eax
mov edx, esi
mov ecx, ebp
mov eax, ebx
mov edi, dword [esp + 0xb0]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x180]
mov esi, dword [esp + 0xb4]
jmp 0x514ae6
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x134], eax
mov ebx, dword [esp + 0x150]
mov dword [esp], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x164]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x168]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x16c]
mov dword [esp + 0x20], esi
call fcn.00510610
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x180]
test ebp, ebp
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x134]
mov dword [esp + 0x150], ebx
mov ebx, dword [esp + 0x60]
jmp 0x514bc0
dec ebx
mov edx, dword [esp + 0x170]
mov edi, dword [esp + 0x174]
mov edx, edi
mov edi, dword [esp + 0x170]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xe8]
mov eax, dword [esp + 0xf0]
test ebx, ebx
jl 0x514e61
cmp ebx, edx
jae 0x5152bf
mov dword [esp + 0x7c], ebx
mov edi, dword [edi + ebx*4]
mov dword [esp + 0xe0], eax
xor eax, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xe0]
jmp 0x514b35
mov eax, dword [esp + 0x150]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0050ed70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
mov dword [esp + 0x190], edx
add esp, 0x154
ret
mov ecx, ebp
mov ebp, eax
jmp 0x514747
mov edi, esi
xor eax, eax
jmp 0x514733
mov eax, dword [esp + 0x17c]
mov ecx, dword [eax]
test ecx, 1
je 0x514f5c
mov ecx, dword [esp + 0x150]
mov dword [esp], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x164]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x168]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x184]
mov dword [esp + 0x2c], eax
call fcn.00515cc0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
mov dword [esp + 0x190], edx
add esp, 0x154
ret
mov ecx, dword [esp + 0x150]
mov dword [esp], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x164]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x168]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x184]
mov dword [esp + 0x2c], eax
call fcn.005152e0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
mov dword [esp + 0x190], edx
add esp, 0x154
ret
mov ebx, dword [esp + 0x180]
jmp 0x514710
mov edx, dword [esp + 0x174]
mov ebx, dword [esp + 0x180]
jmp 0x514710
mov eax, ebx
jmp 0x514680
cmp ebx, 1
jne 0x515069
lea eax, [0x633500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00442930
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x16c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0x180]
mov edi, dword [esp + 0x170]
mov ebx, 1
mov eax, 1
jmp 0x51466d
lea eax, [0x633500]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 8], eax
call fcn.00442930
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x16c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0x180]
mov edi, dword [esp + 0x170]
mov ebx, dword [esp + 0x168]
mov eax, dword [esp + 0x4c]
jmp 0x51466d
cmp esi, 1
jne 0x515103
lea eax, [0x633500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00442930
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x16c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0x180]
mov edi, dword [esp + 0x170]
mov eax, 1
jmp 0x51465d
lea eax, [0x633500]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x50], ecx
mov dword [esp + 8], ecx
call fcn.00442930
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x16c]
mov ebp, dword [esp + 0x164]
mov esi, dword [esp + 0x180]
mov edi, dword [esp + 0x170]
mov eax, dword [esp + 0x50]
jmp 0x51465d
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x168]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x17c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x184]
mov dword [esp + 0x2c], eax
call fcn.00511ff0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], ecx
mov dword [esp + 0x190], edx
add esp, 0x154
ret
mov edi, dword [esp + 0x170]
jmp 0x514651
cmp eax, 1
jl 0x5151fd
mov dword [edx], 1
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], 1
mov dword [esp + 0x190], eax
add esp, 0x154
ret
lea eax, [0x633500]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00442930
mov edx, dword [esp + 0xc]
mov eax, 1
jmp 0x5151d7
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], 0
mov dword [esp + 0x190], eax
add esp, 0x154
ret
mov edi, dword [esp + 0x17c]
jmp 0x514625
test eax, eax
jle 0x51528d
mov ebx, dword [esp + 0x178]
test ebx, ebx
jle 0x515284
lea esi, [edx + eax*4 - 4]
mov edi, dword [esp + 0x170]
lea ebx, [edi + ebx*4 - 4]
cmp esi, ebx
je 0x5145ff
mov ebx, dword [esp + 0x15c]
jmp 0x514605
mov edi, dword [esp + 0x170]
jmp 0x515278
mov edi, dword [esp + 0x170]
jmp 0x515278
test eax, eax
mov edx, dword [esp + 0x158]
mov ebp, dword [esp + 0x164]
jmp 0x515254
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x158]
mov ebp, dword [esp + 0x164]
jmp 0x515254
mov eax, ebx
mov ecx, edx
call fcn.0045ad60
mov eax, esi
mov ecx, 0x100
call fcn.0045ad70
nop
call fcn.00459790
jmp fcn.005145a0