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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x38c
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x10], ecx
cmp edi, 3
ja 0x4c4320
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c4108
or dword [esi + 0x18], 3
add esp, 0x38c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x54], eax
mov ecx, 0xc0
xor eax, eax
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x80]
mov dword [esp + 0x5c], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov edx, dword [esi]
lea ecx, [esp + 0x68]
mov dword [esp], eax
lea ebp, [esi + 0x18]
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], 0
mov byte [esp + 0x64], 0
call fcn.004c5400
sub esp, 4
cmp byte [esp + 0x70], 0
je 0x4c4374
mov eax, dword [esp + 0x68]
cmp byte [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x84], eax
movzx eax, byte [esp + 0x70]
mov byte [esp + 0x88], al
je 0x4c43e3
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x90], eax
movzx eax, byte [esp + 0x7c]
mov byte [esp + 0x94], al
lea eax, [esp + 0x54]
mov dword [esp], eax
call fcn.004c5260
sub esp, 4
movzx eax, byte [esp + 0x44]
test al, al
je 0x4c4598
lea ebx, [esp + 0x98]
mov esi, ebp
lea esi, [esi]
mov edx, dword [esp + 0x3c]
mov byte [ebx + 8], al
lea eax, [esp + 0x54]
lea ecx, [esp + 0x48]
add ebx, 0xc
mov dword [ebx - 0xc], edx
mov edx, dword [esp + 0x40]
mov dword [ebx - 8], edx
mov dword [esp], eax
call fcn.004c5260
sub esp, 4
mov edx, dword [esp + 0x48]
movzx eax, byte [esp + 0x50]
lea ecx, [esp + 0x380]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x44], al
mov dword [esp + 0x40], edx
test al, al
je 0x4c43a0
cmp ebx, ecx
jne 0x4c41d8
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x18]
mov edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, 0x40
and edx, 0xfffffffc
mov dword [edi + 0x18], edx
cmp edx, 3
jbe 0x4c424d
mov ecx, dword [edx]
add ecx, 0x40
mov dword [esp], ecx
mov ecx, esi
mov dword [esp + 4], 0
mov byte [esp + 0x20], al
call fcn.004c4c00
sub esp, 8
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
lea ebp, [esp + 0x80]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 0x60]
add eax, eax
mov edx, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
shl edx, 5
mov dword [esp + 0x18], eax
lea ebx, [ecx + edx + 8]
lea esi, [esi]
nop
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
lea ecx, [ebx + 8]
mov dword [ebx], ecx
mov edx, dword [ebp]
lea esi, [eax + edi]
mov edi, dword [esp + 0x18]
sub esi, edi
movzx edi, byte [ebp + 8]
sar esi, 1
test eax, eax
jne 0x4c42c2
test edx, edx
jne 0x4c45e0
lea edx, [eax + edx*2]
mov dword [esp], eax
mov ecx, ebx
add ebp, 0xc
mov dword [esp + 4], edx
add ebx, 0x20
call fcn.00500e20
mov eax, edi
mov dword [ebx - 4], esi
sub esp, 8
movzx edi, al
mov eax, dword [esp + 0x10]
mov dword [ebx - 8], edi
mov eax, dword [eax + 0x18]
add dword [eax], 1
lea eax, [esp + 0x380]
cmp ebp, eax
jne 0x4c4298
movzx eax, byte [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea ebx, [esp + 0x80]
test al, al
jne 0x4c41d8
jmp 0x4c40f9
and edi, 0xfffffffc
mov esi, dword [edi]
lea ebx, [edi + 8]
test esi, esi
jle 0x4c4369
lea esi, [esi]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4c4345
mov dword [esp], eax
lea ecx, [ebx + 0x18]
call fcn.004681b0
sub esp, 4
mov eax, dword [ebx]
lea edx, [ebx + 8]
cmp eax, edx
je 0x4c4361
mov edx, dword [ebx + 8]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.00524bc0
add ebx, 0x20
sub esi, 1
jne 0x4c4330
mov dword [edi], 0
jmp 0x4c40ea
lea eax, [esp + 0x54]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call fcn.004c5260
sub esp, 4
movzx eax, byte [esp + 0x44]
lea ebx, [esp + 0x80]
test al, al
jne 0x4c41d2
jmp 0x4c40f9
cmp ebx, ecx
je 0x4c422b
lea eax, [esp + 0x80]
mov ebp, esi
cmp ebx, eax
je 0x4c40f9
mov esi, dword [esp + 0x10]
sub ebx, eax
mov eax, dword [esi + 0x18]
cmp ebx, 0xc
je 0x4c4411
mov edx, ebx
and eax, 0xfffffffc
sar edx, 2
mov dword [esi + 0x18], eax
imul edx, edx, 0xaaaaaaab
cmp eax, 3
ja 0x4c443c
mov dword [esp + 0x1c], edx
jmp 0x4c4442
lea eax, [esp + 0x54]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call fcn.004c5260
sub esp, 4
movzx eax, byte [esp + 0x44]
lea ebx, [esp + 0x8c]
test al, al
jne 0x4c41d2
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
mov edx, eax
and edx, 0xfffffffc
cmp eax, 3
jbe 0x4c4582
mov esi, dword [edx]
mov eax, edx
test esi, esi
je 0x4c4582
mov esi, dword [esp + 0x10]
mov ebx, 0xc
mov dword [esi + 0x18], edx
mov edx, 1
mov dword [esp + 0x1c], edx
add edx, dword [eax]
mov dword [esp], edx
mov ecx, ebp
mov dword [esp + 4], 1
call fcn.004c4c00
sub esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx]
shl eax, 5
lea ecx, [edx + eax + 8]
test ebx, ebx
jle 0x4c40f9
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
lea edi, [esp + 0x80]
add eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
jmp 0x4c44f7
test edx, edx
je 0x4c44b6
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [esp + 0x48]
xor ebx, ebx
add dword [esp + 0x14], 1
add ecx, 0x20
add edi, 0xc
mov dword [ecx - 0x1c], edx
mov word [eax + edx*2], bx
mov eax, esi
movzx esi, al
mov eax, dword [esp + 0x18]
mov dword [ecx - 8], esi
mov esi, dword [esp + 0x1c]
mov dword [ecx - 4], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
add dword [eax], 1
mov eax, dword [esp + 0x14]
cmp eax, esi
jge 0x4c40f9
mov ebp, dword [edi + 4]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ebx, dword [edi]
add eax, ebp
sub eax, esi
movzx esi, byte [edi + 8]
sar eax, 1
mov dword [esp + 0x18], eax
lea eax, [ecx + 8]
mov dword [ecx], eax
test ebp, ebp
jne 0x4c4523
test ebx, ebx
jne 0x4c45e0
add ebx, ebx
mov edx, ebx
sar edx, 1
mov dword [esp + 0x48], edx
cmp ebx, 0xe
ja 0x4c4550
cmp edx, 1
jne 0x4c4498
movzx edx, word [ebp]
mov word [eax], dx
jmp 0x4c44b6
lea eax, [esp + 0x48]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.00503200
sub esp, 8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
mov dword [ecx], eax
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
jmp 0x4c4532
movzx eax, byte [esp + 0x88]
mov esi, dword [esp + 0x10]
or eax, edx
mov dword [esi + 0x18], eax
jmp 0x4c40f9
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], eax
and eax, 0xfffffffc
mov dword [esi + 0x18], eax
cmp eax, 3
ja 0x4c45ec
mov dword [esp + 4], 1
mov ecx, ebp
mov dword [esp], 2
call fcn.004c4c00
mov edx, dword [esi + 0x18]
sub esp, 8
mov eax, dword [edx]
mov dword [esp + 0x1c], 2
shl eax, 5
lea ecx, [edx + eax + 8]
jmp 0x4c446f
mov dword [esp], 0x53d0dc
call fcn.00526b80
mov edx, 2
mov ebx, 0x18
jmp 0x4c443c