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

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x1003ec2b
mov eax, dword [esi + 0x28]
mov dword [esi + 0x20], 0
test eax, eax
jne 0x1003eac9
mov dword [esi + 0x30], eax
mov eax, 0x10041ca0
mov dword [esi + 0x28], 0x10041ca0
cmp dword [esi + 0x2c], 0
jne 0x1003ead6
mov dword [esi + 0x2c], 0x10048c90
cmp edx, 0xffffffff
mov ebx, 6
cmovne ebx, edx
cmp ebx, 9
ja 0x1003ec2b
push edi
push 0x16c4
push 1
push dword [esi + 0x30]
call eax
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1003ec22
mov dword [esi + 0x24], edi
push 2
mov dword [edi], esi
mov dword [edi + 4], 0x2a
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], 0x8000
mov dword [edi + 0x34], 0x7fff
mov dword [edi + 0x50], 0xf
mov dword [edi + 0x4c], 0x8000
mov dword [edi + 0x54], 0x7fff
mov dword [edi + 0x58], 5
mov eax, dword [esi + 0x28]
push 0x8000
push dword [esi + 0x30]
call eax
push 2
push dword [edi + 0x2c]
mov dword [edi + 0x38], eax
push dword [esi + 0x30]
mov eax, dword [esi + 0x28]
call eax
push 2
push dword [edi + 0x4c]
mov dword [edi + 0x40], eax
push dword [esi + 0x30]
mov eax, dword [esi + 0x28]
call eax
push 4
mov dword [edi + 0x44], eax
mov dword [edi + 0x16c0], 0
mov dword [edi + 0x169c], 0x4000
mov eax, dword [esi + 0x28]
push 0x4000
push dword [esi + 0x30]
call eax
mov edx, eax
add esp, 0x30
cmp dword [edi + 0x38], 0
mov eax, dword [edi + 0x169c]
mov dword [edi + 8], edx
lea ecx, [eax*4]
mov dword [edi + 0xc], ecx
je 0x1003ec0c
cmp dword [edi + 0x40], 0
je 0x1003ec0c
cmp dword [edi + 0x44], 0
je 0x1003ec0c
test edx, edx
je 0x1003ec0c
mov ecx, dword [edi + 0x169c]
shr eax, 1
mov dword [edi + 0x84], ebx
mov dword [edi + 0x88], 0
mov byte [edi + 0x24], 8
lea eax, [edx + eax*2]
mov dword [edi + 0x16a4], eax
lea eax, [edx + ecx*2]
add eax, ecx
mov ecx, esi
mov dword [edi + 0x1698], eax
pop edi
pop esi
pop ebx
jmp 0x1003ec40
mov eax, dword [str.insufficient_memory]
mov ecx, esi
mov dword [edi + 4], 0x29a
mov dword [esi + 0x20], eax
call fcn.1003f200
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1003ee0e
cmp dword [esi + 0x28], 0
je 0x1003ee0e
cmp dword [esi + 0x2c], 0
je 0x1003ee0e
mov edi, dword [esi + 0x24]
test edi, edi
je 0x1003ee0e
cmp dword [edi], esi
jne 0x1003ee0e
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x1003ec9f
cmp eax, 0x45
je 0x1003ec9f
cmp eax, 0x49
je 0x1003ec9f
cmp eax, 0x5b
je 0x1003ec9f
cmp eax, 0x67
je 0x1003ec9f
cmp eax, 0x71
je 0x1003ec9f
cmp eax, 0x29a
jne 0x1003ee0e
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x34], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x1003ece2
neg ecx
mov dword [edi + 0x18], ecx
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
xor edx, edx
push 0
xor ecx, ecx
mov dword [edi + 4], eax
call fcn.10047260
mov dword [esi + 0x38], eax
mov ecx, edi
lea eax, [edi + 0x94]
mov dword [edi + 0x28], 0
mov dword [edi + 0xb18], eax
lea eax, [edi + 0x988]
mov dword [edi + 0xb24], eax
lea eax, [edi + 0xa7c]
mov dword [edi + 0xb30], eax
xor eax, eax
mov dword [edi + 0xb20], 0x1007c27c
mov dword [edi + 0xb2c], 0x1007ed74
mov dword [edi + 0xb38], 0x1007c2e4
mov word [edi + 0x16b8], ax
mov dword [edi + 0x16bc], eax
call fcn.100474e0
mov esi, dword [esi + 0x24]
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, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x1007e2fa]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x1007e2f8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x1007e2fc]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x1007e2fe]
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