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

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x48ea7c
lea eax, [ecx - 2]
pop esi
ret
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
jne 0x48ea9d
mov dword [esi + 0x28], eax
xor ecx, ecx
mov dword [esi + 0x20], 0x490e00
mov eax, 0x490e00
jmp 0x48eaa0
mov ecx, dword [esi + 0x28]
cmp dword [esi + 0x24], 0
jne 0x48eaad
mov dword [esi + 0x24], 0x490e20
push edi
push 0x16c4
push 1
push ecx
call eax
mov edi, eax
add esp, 0xc
test edi, edi
je 0x48ebe5
mov dword [esi + 0x1c], edi
push ebx
push 2
mov dword [edi], esi
mov dword [edi + 4], 0x2a
mov dword [edi + 0x18], 2
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0x8000
mov dword [edi + 0x34], 0x7fff
mov dword [edi + 0x50], 0xb
mov dword [edi + 0x4c], 0x800
mov dword [edi + 0x54], 0x7ff
mov dword [edi + 0x58], 4
mov eax, dword [esi + 0x20]
push 0x8000
push dword [esi + 0x28]
call eax
push 2
push dword [edi + 0x2c]
mov dword [edi + 0x38], eax
push dword [esi + 0x28]
mov eax, dword [esi + 0x20]
call eax
push 2
push dword [edi + 0x4c]
mov dword [edi + 0x40], eax
push dword [esi + 0x28]
mov eax, dword [esi + 0x20]
call eax
push 4
mov dword [edi + 0x44], eax
mov dword [edi + 0x16c0], 0
mov dword [edi + 0x169c], 0x400
mov eax, dword [esi + 0x20]
push 0x400
push dword [esi + 0x28]
call eax
mov ebx, dword [edi + 0x169c]
add esp, 0x30
cmp dword [edi + 0x38], 0
mov edx, eax
mov dword [edi + 8], edx
lea ecx, [ebx*4]
mov dword [edi + 0xc], ecx
je 0x48ebce
cmp dword [edi + 0x40], 0
je 0x48ebce
cmp dword [edi + 0x44], 0
je 0x48ebce
test edx, edx
je 0x48ebce
mov eax, ebx
mov dword [edi + 0x84], 6
shr eax, 1
mov ecx, esi
mov dword [edi + 0x88], 0
mov byte [edi + 0x24], 8
lea eax, [edx + eax*2]
mov dword [edi + 0x16a4], eax
lea eax, [edx + ebx*2]
add eax, ebx
pop ebx
mov dword [edi + 0x1698], eax
pop edi
pop esi
jmp 0x48ebf0
mov eax, dword [str.insufficient_memory]
mov ecx, esi
mov dword [edi + 4], 0x29a
mov dword [esi + 0x18], eax
call fcn.0048f710
pop ebx
pop edi
mov eax, 0xfffffffc
pop esi
ret
push esi
push edi
mov edi, ecx
test edi, edi
je 0x48edcb
cmp dword [edi + 0x20], 0
je 0x48edcb
cmp dword [edi + 0x24], 0
je 0x48edcb
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x48edcb
cmp dword [esi], edi
jne 0x48edcb
mov eax, dword [esi + 4]
cmp eax, 0x2a
je 0x48ec54
cmp eax, 0x39
je 0x48ec54
cmp eax, 0x45
je 0x48ec54
cmp eax, 0x49
je 0x48ec54
cmp eax, 0x5b
je 0x48ec54
cmp eax, 0x67
je 0x48ec54
cmp eax, 0x71
je 0x48ec54
cmp eax, 0x29a
jne 0x48edcb
mov dword [edi + 0x14], 0
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 2
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], 0
test eax, eax
jns 0x48ec89
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
jne 0x48ec93
lea ecx, [eax + 0x37]
jmp 0x48eca2
test eax, eax
mov ecx, 0x71
mov edx, 0x2a
cmovne ecx, edx
mov dword [esi + 4], ecx
cmp eax, 2
jne 0x48ecae
xor eax, eax
jmp 0x48ecbc
push 0
xor edx, edx
xor ecx, ecx
call fcn.00490e40
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, esi
lea eax, [esi + 0x94]
mov dword [esi + 0x28], 0
mov dword [esi + 0xb18], eax
lea eax, [esi + 0x988]
mov dword [esi + 0xb24], eax
lea eax, [esi + 0xa7c]
mov dword [esi + 0xb30], eax
xor eax, eax
mov dword [esi + 0xb20], 0x4a9fc4
mov dword [esi + 0xb2c], 0x4aa118
mov dword [esi + 0xb38], 0x4aa640
mov word [esi + 0x16b8], ax
mov dword [esi + 0x16bc], eax
call fcn.00491bd0
mov esi, dword [edi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4a7a3a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4a7a38]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4a7a3c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4a7a3e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
pop edi
mov eax, 0xfffffffe
pop esi
ret