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

Disassembly:
sub esp, 0x148
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov esi, dword [edi + 0x90]
mov dword [esp + 0x34], ecx
mov esi, dword [esi + 0x14]
mov eax, dword [esi + 0x78]
mov ebx, dword [esi + 0xec]
test eax, eax
je 0x4c53d0
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x40], ebp
je 0x4c53dd
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x4c53fb
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov eax, dword [eax + 0x74]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4c5b8a
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.004c4760
mov ecx, dword [esp + 0x168]
add esp, 8
mov dword [esi + 0x170], eax
mov dword [esp + 0x10], eax
mov dword [eax + 0x14], ecx
cmp dword [esp + 0x1c], 0
jne 0x4c544d
push 0
push edi
call fcn.004c3920
add esp, 8
test eax, eax
je 0x4c5443
mov ecx, dword [eax]
push eax
push edi
mov dword [edi + 0x68], ecx
call fcn.004c39a0
add esp, 8
jmp 0x4c5b70
mov ebp, 1
jmp 0x4c5b70
mov eax, dword [esi + 0x16c]
xor edi, edi
push dword [esi + 0x88]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edi
call fcn.004517e0
mov dword [esp + 0x54], eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
cmp word [eax + 0x70], di
je 0x4c54a5
push edi
call fcn.00465e10
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4c5599
cmp dword [ecx + 0x34], edi
jne 0x4c5599
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x4c54dd
push eax
call fcn.004680f0
mov edi, eax
add esp, 4
test edi, edi
je 0x4c54dd
mov ebx, 1
mov dword [esp + 0x24], ebx
jmp 0x4c55a1
mov eax, dword [esi + 0x78]
cmp dword [eax + 0x28], 0
jne 0x4c556d
cmp dword [eax + 0x20], 0
jg 0x4c556d
cmp dword [eax + 0x4c], 0
je 0x4c5503
mov dword [esp + 0x2c], 1
jmp 0x4c559f
cmp dword [eax + 0x3c], 0
jne 0x4c5518
mov dword [esi + 0x16c], 0
jmp 0x4c559f
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4c559f
push eax
call fcn.004c7520
add esp, 4
test eax, eax
je 0x4c559f
push dword [esi + 0x16c]
call fcn.004c7c20
push dword [esi + 0x16c]
call fcn.004c6180
mov ecx, dword [esi + 0x16c]
add esp, 8
cmp dword [ecx + 0x60], 0
jne 0x4c555d
mov eax, dword [ecx + 0x84]
mov edi, dword [eax + 4]
push dword [ecx + 0x90]
call fcn.004c1980
add esp, 4
jmp 0x4c559f
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4c5582
push ecx
call fcn.004680f0
mov edi, eax
add esp, 4
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0x20]
test edi, edi
cmovne ebx, edi
mov edi, ebx
xor ebx, ebx
test eax, eax
cmovg ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x4c55a1
mov dword [esi + 0x16c], edi
xor ebx, ebx
mov ebp, dword [esp + 0x10]
push 0x10000
mov dword [ebp + 0x1d0], 0x40
call fcn.0047f870
mov dword [ebp + 0x1cc], eax
xor edx, edx
mov eax, dword [ebp + 0x1d0]
add esp, 4
movzx ecx, word [esi + 0xa2]
shl eax, 0xa
div ecx
mov ebp, eax
mov dword [esp + 0x44], ebp
call fcn.00472410
test eax, eax
jne 0x4c560e
cmp ebp, 1
jle 0x4c560e
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4c5604
cmp dword [ecx + 0x34], eax
jne 0x4c5604
cmp dword [esi + 0x16c], eax
jne 0x4c560e
cmp dword [esp + 0x2c], eax
jne 0x4c560e
mov dword [esp + 0x30], 1
jmp 0x4c5616
mov dword [esp + 0x30], 0
test edi, edi
jne 0x4c5628
cmp dword [esi + 0x16c], edi
mov eax, 1
cmove edi, eax
mov eax, dword [esi]
test edi, edi
jne 0x4c5639
mov eax, dword [eax + 0x18]
push esi
call eax
add esp, 4
jmp 0x4c565d
mov eax, dword [eax + 0x10]
push edi
push esi
call eax
add esp, 8
mov ebp, eax
cmp dword [esp + 0x2c], 0
je 0x4c565f
test ebp, ebp
jne 0x4c565f
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov ebp, eax
mov edi, dword [esi + 0xec]
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x4c5b02
cmp dword [esi + 0x28], 0
jne 0x4c5b02
call fcn.0047edc0
test ax, ax
jne 0x4c5afd
cmp dword [esp + 0x30], 0
je 0x4c57a0
mov ecx, dword [esp + 0x1c]
cmp edi, ecx
ja 0x4c5b02
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c56ae
cmp eax, dword [esp + 0x44]
jl 0x4c571b
mov eax, dword [esp + 0x44]
sub ecx, edi
cmp ecx, eax
jb 0x4c56bc
mov ecx, eax
jmp 0x4c56bd
inc ecx
test ebx, ebx
je 0x4c56c6
cmp ebx, ecx
cmovb ecx, ebx
movzx eax, word [esi + 0xa2]
mov ebx, eax
cdq
push edx
push eax
imul ebx, ecx
lea ecx, [edi - 1]
push 0
push ecx
call fcn.0052a2f0
mov edi, eax
mov ecx, edx
movzx eax, word [esi + 0xa0]
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov edi, dword [esp + 0x18]
push ebx
push dword [edi + 0x1cc]
push dword [esi + 0x8c]
call fcn.004553d0
add esp, 0x14
cmp eax, ebx
jne 0x4c5a70
mov edi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x4c571f
mov ebx, dword [esp + 0x38]
movzx eax, word [esi + 0xa2]
mov ecx, dword [esp + 0x10]
imul eax, ebx
push 0
push esi
add eax, dword [ecx + 0x1cc]
mov dword [esi + 0xe4], eax
mov eax, dword [esi]
mov dword [esi + 0xec], edi
mov eax, dword [eax + 0x54]
call eax
add esp, 8
cmp eax, 1
je 0x4c5b02
mov eax, dword [esi + 0xe4]
xor ecx, ecx
mov dword [esi + 0x118], 1
mov dword [esi + 0x114], 1
cmp byte [eax], 0x2a
sete cl
cmp dword [esi + 0x7c], 0
mov dword [esi + 0x124], ecx
je 0x4c579b
mov eax, dword [esi]
push esi
mov eax, dword [eax + 0xd4]
call eax
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4c5b02
inc ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c57bf
push eax
call fcn.00477550
push eax
call fcn.00467f70
add esp, 8
test eax, eax
je 0x4c5b02
cmp edi, dword [esp + 0x1c]
ja 0x4c59ca
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4c57e8
push eax
call fcn.00477550
push eax
call fcn.00467f70
add esp, 8
test eax, eax
je 0x4c59ca
mov ebx, dword [esp + 0x18]
movzx ecx, word [ebx + 0x70]
test cx, cx
je 0x4c580d
mov eax, dword [esi]
push dword [esp + 0x14]
push ecx
mov eax, dword [eax + 0x58]
push esi
call eax
mov ebp, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
jmp 0x4c581c
push dword [ebx + 0xc]
call fcn.00477550
add esp, 4
mov dword [esp + 0x14], eax
push eax
call fcn.0046a450
add esp, 4
cmp eax, 0x40
ja 0x4c58c7
je 0x4c5883
sub eax, 2
cmp eax, 0x1e
ja case.0x4c5843.3
movzx eax, byte [eax + 0x4c5bb0]
jmp dword [eax*4 + 0x4c5ba4]
movzx eax, word [ebx + 0x74]
push eax
movzx eax, word [ebx + 0x72]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x20]
call fcn.004c21a0
movzx eax, word [ebx + 0x72]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0xec]
push dword [esp + 0x2c]
call fcn.004c4530
add esp, 0x20
jmp 0x4c59ce
cmp byte [ebx + 0x6e], 0x54
jne case.0x4c5843.32
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.00468340
push 0x11
lea eax, [esp + 0x60]
push eax
push dword [esi + 0xec]
push dword [esp + 0x24]
call fcn.004c4530
add esp, 0x18
jmp 0x4c59ce
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.00467f40
push 8
jmp 0x4c5899
cmp eax, 0x80
je 0x4c599a
cmp eax, 0x400
je 0x4c596c
cmp eax, 0xc00
je 0x4c596c
mov eax, dword [ebx + 0x90]
mov ebx, dword [eax]
call fcn.0047edc0
test ax, ax
jne 0x4c5954
call fcn.00447ad0
mov edi, eax
push 0x21
push edi
call fcn.00447bf0
push 0x402
push edi
call fcn.00447c90
push 0
push edi
call fcn.00447c50
push 0x21
call fcn.0044a550
push eax
push edi
call fcn.00447b90
add esp, 0x24
test ebx, ebx
je 0x4c593b
push ebx
push edi
call fcn.00447bb0
add esp, 8
mov eax, dword [esi]
push edi
push esi
mov eax, dword [eax + 0x144]
call eax
push edi
call fcn.00448320
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebx, dword [esp + 0x18]
mov ebp, 1
mov dword [esp + 0x3c], 0
mov eax, ebp
mov dword [ebx + 0x48], ebp
jmp 0x4c59d6
push dword [esp + 0x14]
call fcn.00467ee0
add esp, 4
push eax
push dword [esp + 0x18]
call fcn.00467f00
add esp, 4
push eax
push dword [esi + 0xec]
push dword [esp + 0x1c]
call fcn.004c4530
add esp, 0x10
jmp 0x4c59ce
push dword [esp + 0x14]
call fcn.00467f70
neg eax
push 1
sbb al, al
and al, 0xe
add al, 0x46
mov byte [esp + 0x5c], al
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0xec]
push dword [esp + 0x20]
call fcn.004c4530
add esp, 0x14
jmp 0x4c59ce
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c59e3
sub eax, 1
mov dword [esp + 0x24], eax
je 0x4c5b02
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4c5a1a
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x18]
jl 0x4c5a16
push edx
mov dword [esp + 0x24], 0
call fcn.00477550
push eax
call fcn.00467f70
add esp, 8
test eax, eax
je 0x4c5af4
inc dword [esp + 0x20]
cmp dword [esp + 0x30], 0
je 0x4c5a24
inc edi
jmp 0x4c5a5b
test ebp, ebp
jne 0x4c5b43
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x28]
call eax
add esp, 8
mov ebp, eax
cmp dword [esp + 0x2c], 0
je 0x4c5a55
test ebp, ebp
jne 0x4c5a55
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov ebp, eax
mov edi, dword [esi + 0xec]
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x4c5b02
mov ebx, dword [esp + 0x24]
jmp 0x4c5671
call fcn.004541a0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [ecx + 0x90]
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx]
mov dword [esp + 0x34], eax
call fcn.0047edc0
test ax, ax
jne 0x4c5b06
call fcn.00447ad0
mov edi, eax
push 0x17
push edi
call fcn.00447bf0
push 0x3f2
push edi
call fcn.00447c90
push dword [esp + 0x50]
push edi
call fcn.00447c50
push 0x17
call fcn.0044a550
push eax
push edi
call fcn.00447b90
add esp, 0x24
test ebx, ebx
je 0x4c5ad9
push ebx
push edi
call fcn.00447bb0
add esp, 8
mov ecx, dword [esp + 0x34]
push edi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
push edi
call fcn.00448320
add esp, 0xc
jmp 0x4c5b02
mov dword [ebx + 0x48], 1
jmp 0x4c5b02
mov ebp, 1
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x30], 0
je 0x4c5b36
mov eax, dword [esp + 0x48]
mov dword [esi + 0xe4], eax
mov dword [esi + 0x114], 0
test ebp, ebp
jne 0x4c5b43
mov eax, dword [esi]
push dword [esp + 0x28]
push esi
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x4c5b43
push edi
call fcn.004c4930
add esp, 4
mov eax, dword [esp + 0x18]
cmp word [eax + 0x70], 0
je 0x4c5b5a
push dword [esp + 0x14]
call fcn.00469760
add esp, 4
mov eax, dword [esp + 0x4c]
push dword [esp + 0x50]
mov dword [esi + 0x16c], eax
call fcn.004517e0
add esp, 4
push 1
push dword [esp + 0x14]
call fcn.004c4330
add esp, 8
mov dword [esi + 0x170], 0
mov eax, ebp
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0x148
ret