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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov esi, dword [edi + 8]
mov eax, dword [edi]
add esi, 0x28
push 8
pop edx
mov ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x14], esi
call fcn.004c047c
xor ebx, ebx
inc ebx
cmp dword [edi + 0x5c], 7
jne 0x4c056a
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x1e], bl
jmp 0x4c0842
mov al, byte [edi + 0x62]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], al
cmp al, bl
jne 0x4c05c7
mov eax, dword [edi + 8]
add eax, 0x168
mov dword [ebp - 0x14], eax
test byte [eax + 0x1c], 0x10
je 0x4c059c
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
shr ecx, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x4c059f
mov ecx, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
jle 0x4c05c4
mov ebx, dword [ebp - 0xc]
mov esi, dword [edi + 0x1c]
mov eax, dword [ebx + edx*4]
add esi, dword [eax + 4]
inc edx
cmp edx, ecx
jl 0x4c05ab
mov dword [ebp - 8], esi
xor ebx, ebx
mov esi, dword [ebp - 0x1c]
inc ebx
mov ecx, dword [ebp - 8]
jmp 0x4c05c7
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x58]
lea eax, [edx + 1]
mov dword [edi + 0x58], eax
cmp edx, ecx
jge 0x4c083b
cmp byte [ebp - 1], 2
jne 0x4c05ed
mov eax, dword [edi + 4]
imul ecx, edx, 0x14
cmp byte [ecx + eax], 0x8a
mov ecx, dword [ebp - 8]
jne 0x4c05c7
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xe0], 0
je 0x4c061e
push 9
pop ecx
mov dword [edi + 0x5c], ecx
call fcn.004eb635
push eax
push 0x583be0
push dword [ebp - 0x18]
lea eax, [edi + 0x38]
push eax
call fcn.004ad44d
add esp, 0x10
jmp 0x4c0842
cmp edx, dword [edi + 0x1c]
jge 0x4c062b
imul ecx, edx, 0x14
add ecx, dword [edi + 4]
jmp 0x4c065a
mov eax, dword [ebp - 0xc]
xor ecx, ecx
sub edx, dword [edi + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
cmp edx, eax
jl 0x4c064f
mov ebx, dword [ebp - 0xc]
sub edx, eax
inc ecx
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x4c063f
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
imul ecx, edx, 0x14
add ecx, dword [eax]
push 4
mov dword [ebp - 8], ecx
pop eax
cmp byte [edi + 0x62], bl
jne 0x4c0715
mov word [esi + 0x1c], ax
mov eax, edx
cdq
mov dword [esi + 0x10], eax
mov eax, 0xa02
mov byte [esi + 0x1e], bl
mov dword [esi + 0x14], edx
mov word [esi + 0x44], ax
movzx eax, byte [ecx]
mov ecx, dword [eax*4 + 0x5774d0]
mov dword [esi + 0x2c], ecx
call fcn.004aebf7
mov ecx, dword [ebp - 8]
mov dword [esi + 0x40], eax
mov byte [esi + 0x46], 3
mov byte [esi + 0x47], bl
add esi, 0x50
cmp byte [ecx + 1], 0xee
jne 0x4c0718
mov eax, dword [ebp - 0x10]
lea edx, [eax*4 + 4]
mov dword [ebp - 0x18], edx
xor edx, edx
test eax, eax
jle 0x4c06dc
mov eax, dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
cmp dword [ecx + edx*4], edi
je 0x4c06d6
inc edx
cmp edx, eax
jl 0x4c06cc
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
cmp edx, eax
jne 0x4c0718
mov ecx, dword [ebp - 0x14]
lea edx, [eax*4 + 4]
push ebx
call fcn.004beca9
pop ecx
test eax, eax
jne 0x4c0715
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
or word [edx + 0x1c], 0x10
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 8]
push 4
pop edx
mov word [esi + 0x1c], dx
mov eax, dword [ecx + 4]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov byte [esi + 0x1e], bl
push 4
pop eax
mov word [esi + 0x44], ax
mov eax, dword [ecx + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
push 4
mov byte [esi + 0x46], bl
pop eax
mov word [esi + 0x6c], ax
mov eax, dword [ecx + 0xc]
lea ecx, [esi + 0x78]
cdq
push 0
mov dword [esi + 0x64], edx
push 0x20
pop edx
mov dword [esi + 0x60], eax
mov byte [esi + 0x6e], bl
call fcn.004beca9
pop ecx
test eax, eax
jne 0x4c0842
mov edx, dword [esi + 0x7c]
mov eax, 0x602
push ecx
mov ecx, dword [ebp - 8]
mov word [esi + 0x94], ax
call fcn.004c0198
pop ecx
mov ecx, dword [esi + 0x7c]
cmp eax, ecx
je 0x4c079e
push 0
push ebx
push 0xffffffffffffffff
mov edx, eax
lea ecx, [esi + 0x78]
call fcn.004bf3ac
add esp, 0xc
jmp 0x4c07af
call fcn.004aebf7
mov dword [esi + 0x90], eax
mov byte [esi + 0x97], bl
mov byte [esi + 0x96], 3
push 2
pop ecx
cmp byte [edi + 0x62], bl
jne 0x4c0826
push 0
push 4
pop eax
mov edx, eax
lea ecx, [esi + 0xa0]
call fcn.004beca9
pop ecx
test eax, eax
jne 0x4c0842
mov eax, 0x602
mov dword [esi + 0xb8], 2
mov word [esi + 0xbc], ax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 3]
push eax
push str._.2x
push dword [esi + 0xa4]
push 3
call fcn.004ae3d3
add esp, 0x10
mov byte [esi + 0xbe], 3
mov byte [esi + 0xbf], bl
mov word [esi + 0xe4], bx
mov byte [esi + 0xe6], 5
push 2
pop ecx
movzx eax, byte [edi + 0x62]
dec ax
sub cx, ax
shl cx, 2
mov word [edi + 0x30], cx
push 0x64
jmp 0x4c083d
push 0x65
and dword [edi + 0x5c], 0
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret