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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x10c
mov eax, dword [esp + 0x12c]
mov ebx, dword [esp + 0x120]
mov ebp, dword [esp + 0x128]
test eax, eax
mov eax, dword [esp + 0x130]
sete byte [esp + 0x9a]
test eax, eax
mov eax, dword [esp + 0x154]
sete byte [esp + 0x9b]
mov eax, dword [eax + 8]
cmp eax, 0x1f
jbe 0x4cbb70
mov edx, dword [esp + 0x154]
cmp dword [edx], 1
cmove eax, ebp
xor ecx, ecx
test ebp, ebp
sete cl
xor edx, edx
add ecx, eax
lea eax, [ecx + ebp - 1]
div ecx
add eax, dword [esp + 0x138]
lea esi, [eax*4]
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_malloc
mov dword [esp], esi
mov dword [esp + 0x68], eax
call sub.msvcrt.dll_malloc
mov dword [esp], esi
mov dword [esp + 0x70], eax
call sub.msvcrt.dll_malloc
mov dword [esp], esi
mov dword [esp + 0x6c], eax
call sub.msvcrt.dll_malloc
mov dword [esp], esi
mov dword [esp + 0x74], eax
call sub.msvcrt.dll_malloc
mov dword [esp], esi
mov dword [esp + 0x78], eax
call sub.msvcrt.dll_malloc
mov dword [esp], esi
mov dword [esp + 0x7c], eax
call sub.msvcrt.dll_malloc
mov esi, eax
mov eax, dword [esp + 0x154]
mov dword [esp + 4], 0x3e8
imul eax, dword [eax + 4], 0x3e8
mov dword [esp], eax
call fcn.004c73e0
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 4], 0x3e8
imul eax, dword [eax + 4], 0x3e8
mov dword [esp], eax
call fcn.004c73e0
mov dword [esp + 0x84], eax
call fcn.00411ee0
mov dword [esp + 0x88], eax
call fcn.00489560
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x130]
test eax, eax
je 0x4cbca2
mov edx, dword [esp + 0x12c]
mov dword [esp + 0x94], 0
test edx, edx
je 0x4cbcc0
lea edi, [esp + 0xd8]
xor eax, eax
mov ecx, 0xa
test ebp, ebp
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xf8], 1
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 1
mov dword [esp + 0xd4], 0
mov dword [esp + 0x90], 0
jne 0x4cbc80
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0xac], edi
je 0x4cb9a5
mov edi, dword [esp + 0x70]
test edi, edi
je 0x4cb9a5
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4cb9a5
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4cb9a5
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4cb9a5
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4cb9a5
test esi, esi
je 0x4cb9a5
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4cb9a5
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4cb9a5
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4cb9a5
mov edi, dword [esp + 0x8c]
test edi, edi
sete cl
test edx, edx
mov edi, ecx
sete cl
mov eax, edi
or al, cl
jne 0x4cb9a5
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x4cb9a5
movzx ecx, byte [esp + 0x9b]
cmp byte [esp + 0x9a], cl
jne 0x4cbcdd
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x84]
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x14c]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x138]
mov ebp, dword [esp + 0x130]
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x28], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0xb0]
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x70]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x6c]
mov ecx, ebp
mov dword [esp], edx
mov edx, edi
call fcn.004c8ac0
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call fcn.004c74d0
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.004c74d0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.004123a0
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.00489690
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.004f1ae0
mov dword [esp], edi
call fcn.004f1ae0
mov dword [esp], ebp
call fcn.004f1ae0
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
call fcn.004f1ae0
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call fcn.004f1ae0
mov ebp, dword [esp + 0x78]
mov dword [esp], ebp
call fcn.004f1ae0
mov edx, dword [esp + 0x7c]
mov dword [esp], edx
call fcn.004f1ae0
mov dword [esp], esi
call fcn.004f1ae0
mov eax, dword [esp + 0xb0]
mov dword [ebx], eax
mov eax, dword [esp + 0xb4]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0xb8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0xc0]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0xc4]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0xc8]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0xcc]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0xd0]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0xd4]
mov dword [ebx + 0x24], eax
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, 1
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call fcn.004c74d0
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.004c74d0
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.004123a0
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.00489690
mov eax, dword [esp + 0x94]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.004f1ae0
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004f1ae0
mov dword [esp], esi
call fcn.004f1ae0
test ebp, ebp
jne 0x4cbb80
movzx edx, byte [esp + 0x9b]
cmp byte [esp + 0x9a], dl
je 0x4cb935
lea edi, [esp + 0xd8]
mov eax, ebp
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14c]
test eax, eax
jle 0x4cbb00
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x4fe5d6
add eax, 0x40
mov dword [esp], eax
call fcn.004c7e40
mov dword [esp], 0
call sub.msvcrt.dll_fflush
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Dst_parameters_not_coherent
add eax, 0x40
mov dword [esp], eax
call fcn.004c7e40
mov dword [esp], 0
call sub.msvcrt.dll_fflush
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4fe024
add eax, 0x40
mov dword [esp], eax
call fcn.004c7e40
mov dword [esp], 0
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0xd8]
mov dword [ebx + 0x20], 0x20
mov dword [ebx], eax
mov eax, dword [esp + 0xdc]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0xe0]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xe4]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0xe8]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0xec]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0xf0]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0xf4]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0xfc]
mov dword [ebx + 0x24], eax
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebp
jmp 0x4cb53a
mov edx, dword [esp + 0x14c]
lea edi, [esp + 0xd8]
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
test edx, edx
jle 0x4cbc0f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 0x4fe5d6
add eax, 0x40
mov dword [esp], eax
call fcn.004c7e40
mov dword [esp], 0
call sub.msvcrt.dll_fflush
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4fe8c0
add eax, 0x40
mov dword [esp], eax
call fcn.004c7e40
mov dword [esp], 0
call sub.msvcrt.dll_fflush
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x4fe024
add eax, 0x40
mov dword [esp], eax
call fcn.004c7e40
mov dword [esp], 0
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0xd8]
mov dword [ebx + 0x20], 0x1f
mov dword [ebx], eax
mov eax, dword [esp + 0xdc]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0xe0]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0xe4]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0xe8]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0xec]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0xf0]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0xf4]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0xfc]
mov dword [ebx + 0x24], eax
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov dword [esp + 0x9c], edx
call sub.msvcrt.dll_malloc
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x90], eax
jmp 0x4cb6d4
mov dword [esp], ebp
shl edi, 0xa
call fcn.00411eb0
add eax, edi
mov dword [esp + 0x130], eax
jmp 0x4cb61e
mov eax, dword [esp + 0x130]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x94], eax
mov edx, eax
jmp 0x4cb638
xor ebp, ebp
jmp 0x4cb9aa