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

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, dword [esp + 0x6c]
imul ebp, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], 0
cmp dword [edi], 3
jne 0x490e85
cmp dword [edi + 8], 0
jne 0x490e85
pop edi
pop esi
mov eax, 0x6b
pop ebp
add esp, 0x5c
ret
push ebx
mov ebx, dword [esp + 0x70]
mov edx, edi
mov ecx, ebx
call fcn.00491213
test eax, eax
je 0x490ed5
mov ecx, dword [edi]
call fcn.00495624
mov edx, dword [esp + 0x14]
mov ecx, eax
imul ecx, dword [edi + 4]
mov eax, ebp
and eax, 7
shr ebp, 3
imul eax, ecx
imul ebp, ecx
mov ecx, dword [esp + 0x10]
add eax, 7
shr eax, 3
add eax, ebp
push eax
call fcn.004955f4
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret
cmp dword [ebx], 3
jne 0x490fa6
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebx, 1
shl ebx, cl
mov dword [esp + 0x78], ecx
test eax, eax
jne 0x490f47
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 8]
cmp ecx, 3
jne 0x490f49
mov edx, dword [edi + 4]
cmp edx, dword [esp + 0x78]
jne 0x490f49
call fcn.00495624
mov ecx, eax
mov eax, ebp
imul ecx, edx
and eax, 7
mov edx, dword [esp + 0x14]
shr ebp, 3
imul eax, ecx
imul ebp, ecx
mov ecx, dword [esp + 0x10]
add eax, 7
shr eax, 3
add eax, ebp
push eax
call fcn.004955f4
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret
mov esi, edx
cmp eax, ebx
jae 0x490f4f
mov ebx, eax
lea edx, [esp + 0x28]
mov ecx, 0x40
call fcn.004c4e70
xor edi, edi
mov dword [esp + 0x68], 0xffffffff
test ebx, ebx
je 0x490fa2
add esi, 2
movzx eax, byte [esi + 1]
lea ecx, [esp + 0x28]
mov dl, byte [esi - 2]
push edi
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi - 1]
push eax
call fcn.00490d70
mov edx, eax
add esp, 0x10
mov dword [esp + 0x24], edx
test edx, edx
jne 0x49110c
inc edi
add esi, 4
cmp edi, ebx
jne 0x490f6e
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
cmp dword [edx + 4], 0x10
jne 0x491152
cmp dword [ebx + 4], 0x10
jne 0x491152
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebp, ebp
je 0x491110
mov esi, dword [esp + 0x10]
add esi, 2
mov ebx, esi
mov edi, esi
lea esp, [esp]
push edx
push ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
mov dword [esp + 0x84], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x8c], 0
push eax
lea edx, [esp + 0x90]
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x30], 0
call fcn.00490b64
mov eax, dword [esp + 0x84]
add esp, 0x14
mov eax, dword [eax]
test eax, eax
jne 0x491057
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x78]
shr eax, 8
mov byte [ecx + edx*2], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
mov byte [eax + edx*2 + 1], cl
jmp 0x4910ee
cmp eax, 2
jne 0x49108a
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 8
mov byte [edi - 2], al
mov byte [edi - 1], cl
mov ecx, dword [esp + 0x7c]
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov byte [edi + 1], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [edi + 2], al
mov byte [edi + 3], cl
jmp 0x4910ee
cmp eax, 4
jne 0x4910ae
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 8
mov byte [ebx - 2], al
mov byte [ebx - 1], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov byte [ebx + 1], cl
jmp 0x4910ee
cmp eax, 6
jne 0x4910ee
mov ecx, dword [esp + 0x78]
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov byte [esi - 1], cl
mov ecx, dword [esp + 0x7c]
mov eax, ecx
shr eax, 8
mov byte [esi], al
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, dword [esp + 0x20]
add edi, 6
mov edx, dword [esp + 0x74]
inc ecx
add ebx, 4
mov dword [esp + 0x20], ecx
add esi, 8
cmp ecx, ebp
jne 0x490fdb
mov ebx, dword [esp + 0x70]
cmp dword [ebx], 3
jne 0x491146
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x28]
test ecx, ecx
je 0x491140
call fcn.00490b29
mov eax, dword [esp + esi*4 + 0x28]
test eax, eax
je 0x491140
add eax, 0xfffffffc
push eax
push 0
push dword [0x4cefc8]
call edi
inc esi
cmp esi, 0x10
jne 0x49111d
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x5c
ret
cmp dword [ebx + 4], 8
jne 0x49118e
mov eax, dword [ebx]
cmp eax, 6
jne 0x491174
mov ecx, dword [esp + 0x10]
push edx
push dword [esp + 0x18]
mov edx, ebp
call fcn.0049073a
add esp, 8
jmp 0x491110
cmp eax, 2
jne 0x49118e
mov ecx, dword [esp + 0x10]
push edx
push dword [esp + 0x18]
mov edx, ebp
call fcn.00490442
add esp, 8
jmp 0x491110
xor esi, esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x7c], 0
mov byte [esp + 0x78], 0
test ebp, ebp
je 0x491110
push edx
push esi
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x30]
call fcn.00490113
push dword [esp + 0x8c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x40]
push dword [esp + 0x94]
mov edx, esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
push ebx
call fcn.0048fecc
add esp, 0x2c
mov dword [esp + 0x24], eax
test eax, eax
jne 0x491110
mov edx, dword [esp + 0x74]
inc esi
cmp esi, ebp
jne 0x4911ac
jmp 0x491110