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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov esi, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
xor eax, eax
cmp eax, dword [edx + 0xc]
jo 0x4c59a2
mov eax, dword [edx + 0x18]
mov edi, edx
neg eax
jo 0x4c59a2
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x60], esi
test ebx, ebx
js 0x4c5c32
mov esi, dword [edi + 0x10]
je 0x4c59be
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, ebx
call fcn.0049d570
test eax, eax
je 0x4c5c32
mov ebp, eax
jmp 0x4c59c3
mov dword [esp], 0
mov dword [esp + 4], 1
mov dword [esp + 8], 0
jmp 0x4c5b12
mov ebp, 1
push ebx
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
mov ebx, dword [edi + 0x20]
test ebx, ebx
js 0x4c5c32
mov esi, dword [edi + 0x1c]
je 0x4c5a06
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, ebx
call fcn.0049d570
test eax, eax
je 0x4c5c32
mov ebp, eax
jmp 0x4c5a0b
mov ebp, 1
push ebx
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0xc]
mov edx, esp
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0x8ebbcc
mov dword [esp + 0x34], 2
mov dword [esp + 0x40], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov dword [esp], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x40a570
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x74]
lea edx, [esp + 0x30]
mov dword [esp + 0x24], 0x40a570
mov dword [esp + 0x3c], 2
call fcn.0041bf90
cmp dword [esp], 0
je 0x4c5a8c
push dword [esp + 4]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0xc], 0
je 0x4c5aa5
push dword [esp + 0x10]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, ebp
push dword [esp + 0x7c]
call fcn.004c5cf0
add esp, 4
test esi, esi
je 0x4c5ad4
push ebp
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp byte [edi + 0x28], 0
mov esi, dword [esp + 0x60]
je 0x4c5be3
mov dword [esp], 0
mov dword [esp + 4], 1
mov dword [esp + 8], 0
cmp dword [esp + 0x18], 0
je 0x4c5b12
push dword [esp + 0x1c]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
lea edx, [esp + 0x9c]
mov dword [esp + 0x18], 0x8ebd94
mov dword [esp + 0x1c], 7
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0x4055f0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x41fbf0
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x44], 0x4055f0
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0x41fbf0
mov edx, esp
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], 0x4055f0
mov dword [esp + 0x58], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x5c], 0x40a570
mov dword [esp + 0x20], ecx
mov ecx, esi
mov dword [esp + 0x24], 6
call fcn.0041bf90
cmp dword [esp], 0
je 0x4c5bd8
push dword [esp + 4]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xc]
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], 0x8ebd3c
mov dword [esp + 0x34], 2
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], 0x40a570
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 1
call fcn.0041bf90
cmp dword [esp + 0x18], 0
jne 0x4c5b00
jmp 0x4c5b12
ud2