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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c5ae6
sub esp, 0x64
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4c53ad
lea eax, [0x4f0180]
mov dword [esp], eax
call fcn.0040aa30
mov edi, dword [esp + 4]
mov eax, dword [0x62f5a0]
test eax, eax
jne 0x4c51ac
mov eax, dword [esp + 0x68]
mov dword [edi], eax
jmp 0x4c51b5
mov eax, dword [esp + 0x68]
call fcn.0045d410
mov dword [esp + 0x58], edi
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x4c51f9
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x4c51cf
xor edx, edx
xor ebp, ebp
jmp 0x4c5220
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x58]
mov edx, ecx
mov ebp, eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
jmp 0x4c5220
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
call eax
mov ebp, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x30], edx
mov esi, dword [eax + 0x140]
mov ecx, dword [eax + 0x144]
cmp ecx, 4
jne 0x4c5243
cmp dword [esi], 0x78696e75
je 0x4c5297
jmp 0x4c52bc
cmp ecx, 8
jne 0x4c525b
cmp dword [esi], 0x78696e75
jne 0x4c52bc
cmp dword [esi + 4], 0x6d617267
je 0x4c5297
jmp 0x4c52bc
cmp ecx, 0xa
jne 0x4c52bc
mov dword [esp], esi
lea eax, [0x504ba7]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
call fcn.00402670
movzx eax, byte [esp + 0xc]
test al, al
je 0x4c52a8
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ecx, dword [eax + 0x140]
mov esi, dword [eax + 0x144]
jmp 0x4c535a
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ecx, dword [eax + 0x140]
mov esi, dword [eax + 0x144]
movzx ebx, byte [esi + ecx - 1]
cmp bl, 0x34
je 0x4c535a
cmp bl, 0x36
je 0x4c535a
cmp dword [eax + 0x134], 2
jne 0x4c5320
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
lea eax, [0x536594]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004499d0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
jmp 0x4c535a
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
lea eax, [0x536598]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004499d0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x84]
mov ebx, dword [eax]
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
lea ecx, [0x537788]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x84]
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x4c5ad4
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x4c53bb
xor ebp, ebp
xor esi, esi
jmp 0x4c5434
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x78]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4c5ac2
test ebp, ebp
je 0x4c5434
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004672d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x4c5a57
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4c54fa
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ebp
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edx, edx
jne 0x4c54e8
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004b87a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x4c54d6
mov eax, dword [esp + 0x68]
mov byte [eax + 0x13c], 1
jmp 0x4c5522
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebp
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004b8690
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x4c5a45
mov eax, dword [esp + 0x68]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x34], ebx
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.004673b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4c56fb
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx + 0x134]
cmp ebp, 1
jne 0x4c5585
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x4c556b
lea ebp, [0x5102c0]
jmp 0x4c55c2
cmp ebp, 2
jne 0x4c5578
lea ebp, [0x5102b8]
jmp 0x4c55c2
cmp ebp, 5
jne 0x4c55bc
lea ebp, [0x5102bc]
jmp 0x4c55c2
cmp ebp, 2
je 0x4c558f
cmp ebp, 0x17
jne 0x4c55bc
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x4c55a2
lea ebp, [0x5102b0]
jmp 0x4c55c2
cmp ebp, 2
jne 0x4c55af
lea ebp, [0x5102b4]
jmp 0x4c55c2
cmp ebp, 3
jne 0x4c55bc
lea ebp, [0x5102ac]
jmp 0x4c55c2
lea ebp, [0x510254]
mov ebx, dword [ebp]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, ebp
call ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x60], ebp
cmp ecx, 1
jne 0x4c561c
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4c5602
lea ecx, [0x5102c0]
jmp 0x4c5659
cmp ecx, 2
jne 0x4c560f
lea ecx, [0x5102b8]
jmp 0x4c5659
cmp ecx, 5
jne 0x4c5653
lea ecx, [0x5102bc]
jmp 0x4c5659
cmp ecx, 2
je 0x4c5626
cmp ecx, 0x17
jne 0x4c5653
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4c5639
lea ecx, [0x5102b0]
jmp 0x4c5659
cmp ecx, 2
jne 0x4c5646
lea ecx, [0x5102b4]
jmp 0x4c5659
cmp ecx, 3
jne 0x4c5653
lea ecx, [0x5102ac]
jmp 0x4c5659
lea ecx, [0x510258]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x62f5a0]
test ebx, ebx
jne 0x4c569a
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x14c], edx
jmp 0x4c56ad
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x48]
call fcn.0045d410
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x62f5a0]
test ecx, ecx
jne 0x4c56c5
mov dword [ebp + 0x154], eax
jmp 0x4c56d0
lea edi, [ebp + 0x154]
call fcn.0045d410
lea eax, [0x4ffa00]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x4eb680]
mov dword [esp + 8], eax
lea eax, [0x510250]
mov dword [esp + 0xc], eax
call fcn.00413370
jmp 0x4c5a2b
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.00467490
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test edx, edx
je 0x4c58e5
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x68]
mov ebp, dword [ebx + 0x134]
cmp ebp, 1
jne 0x4c576a
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x4c5750
lea edx, [0x5102c0]
jmp 0x4c57a7
cmp ebp, 2
jne 0x4c575d
lea edx, [0x5102b8]
jmp 0x4c57a7
cmp ebp, 5
jne 0x4c57a1
lea edx, [0x5102bc]
jmp 0x4c57a7
cmp ebp, 2
je 0x4c5774
cmp ebp, 0x17
jne 0x4c57a1
mov ebp, dword [ebx + 0x138]
cmp ebp, 1
jne 0x4c5787
lea edx, [0x5102b0]
jmp 0x4c57a7
cmp ebp, 2
jne 0x4c5794
lea edx, [0x5102b4]
jmp 0x4c57a7
cmp ebp, 3
jne 0x4c57a1
lea edx, [0x5102ac]
jmp 0x4c57a7
lea edx, [0x51025c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 8]
mov dword [esp + 0x60], ebp
cmp ecx, 1
jne 0x4c5806
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4c57ec
lea ecx, [0x5102c0]
jmp 0x4c5843
cmp ecx, 2
jne 0x4c57f9
lea ecx, [0x5102b8]
jmp 0x4c5843
cmp ecx, 5
jne 0x4c583d
lea ecx, [0x5102bc]
jmp 0x4c5843
cmp ecx, 2
je 0x4c5810
cmp ecx, 0x17
jne 0x4c583d
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4c5823
lea ecx, [0x5102b0]
jmp 0x4c5843
cmp ecx, 2
jne 0x4c5830
lea ecx, [0x5102b4]
jmp 0x4c5843
cmp ecx, 3
jne 0x4c583d
lea ecx, [0x5102ac]
jmp 0x4c5843
lea ecx, [0x510260]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x62f5a0]
test ebx, ebx
jne 0x4c5884
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x14c], edx
jmp 0x4c5897
lea edi, [ebp + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x44]
call fcn.0045d410
mov eax, edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x62f5a0]
test ecx, ecx
jne 0x4c58af
mov dword [ebp + 0x154], eax
jmp 0x4c58ba
lea edi, [ebp + 0x154]
call fcn.0045d410
lea eax, [0x4ffa00]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x4eb680]
mov dword [esp + 8], eax
lea eax, [0x510250]
mov dword [esp + 0xc], eax
call fcn.00413370
jmp 0x4c5a2b
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x134]
cmp ecx, 1
jne 0x4c5921
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4c5907
lea ecx, [0x5102c0]
jmp 0x4c595e
cmp ecx, 2
jne 0x4c5914
lea ecx, [0x5102b8]
jmp 0x4c595e
cmp ecx, 5
jne 0x4c5958
lea ecx, [0x5102bc]
jmp 0x4c595e
cmp ecx, 2
je 0x4c592b
cmp ecx, 0x17
jne 0x4c5958
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x4c593e
lea ecx, [0x5102b0]
jmp 0x4c595e
cmp ecx, 2
jne 0x4c594b
lea ecx, [0x5102b4]
jmp 0x4c595e
cmp ecx, 3
jne 0x4c5958
lea ecx, [0x5102ac]
jmp 0x4c595e
lea ecx, [0x510264]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x60], ecx
lea ebx, [0x4f0880]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
call fcn.00408510
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x68]
mov dword [ebx + 0x148], ecx
mov ecx, dword [0x62f5a0]
test ecx, ecx
jne 0x4c59c1
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x14c], ecx
jmp 0x4c59d4
lea edi, [ebx + 0x14c]
mov ecx, eax
mov eax, dword [esp + 0x40]
call fcn.0045d410
mov eax, ecx
mov dword [ebx + 0x150], eax
mov ecx, dword [0x62f5a0]
test ecx, ecx
jne 0x4c59f3
mov eax, dword [esp + 0x80]
mov dword [ebx + 0x154], eax
jmp 0x4c5a05
lea edi, [ebx + 0x154]
mov eax, dword [esp + 0x80]
call fcn.0045d410
lea eax, [0x4ffa00]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x4eb680]
mov dword [esp + 8], eax
lea eax, [0x510250]
mov dword [esp + 0xc], eax
call fcn.00413370
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x64
ret
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edx
lea eax, [0x4f24a0]
mov dword [esp], eax
call fcn.0040aa30
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x503a51]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [0x62f5a0]
test ecx, ecx
jne 0x4c5a9a
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xc], ecx
jmp 0x4c5aaa
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045d410
mov eax, ecx
lea ecx, [0x5374e8]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x64
ret
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
add esp, 0x64
ret
call fcn.0045c000
jmp fcn.004c5160