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

Disassembly:
mov eax, dword [esp + 0x1c]
push esi
mov esi, 1
test eax, eax
je 0x41ec82
cmp byte [eax], 0x31
jne 0x41ec82
cmp dword [esp + 0x24], 0x38
jne 0x41ec82
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x41e955
pop edi
lea eax, [esi - 3]
pop esi
ret
cmp dword [edi + 0x20], 0
mov dword [edi + 0x18], 0
jne 0x41e970
mov dword [edi + 0x20], 0x41fde0
mov dword [edi + 0x28], 0
cmp dword [edi + 0x24], 0
jne 0x41e97d
mov dword [edi + 0x24], 0x41fe00
cmp dword [esp + 0x10], 0xffffffff
mov ecx, 6
push ebx
cmovne ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
test ebx, ebx
jns 0x41e99f
xor esi, esi
neg ebx
jmp 0x41e9ac
cmp ebx, 0xf
jle 0x41e9ac
mov esi, 2
sub ebx, 0x10
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 8
ja 0x41ec79
cmp dword [esp + 0x18], 8
jne 0x41ec79
lea eax, [ebx - 8]
cmp eax, 7
ja 0x41ec79
cmp ecx, 9
ja 0x41ec79
cmp dword [esp + 0x24], 4
ja 0x41ec79
cmp ebx, 8
jne 0x41e9f6
cmp esi, 1
jne 0x41ec79
lea ebx, [esi + 8]
mov eax, dword [edi + 0x20]
push ebp
push 0x16c4
push 1
push dword [edi + 0x28]
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x41ec6f
mov dword [edi + 0x1c], ebp
mov ecx, ebx
mov dword [ebp + 0x18], esi
mov esi, 1
shl esi, cl
mov dword [ebp + 0x30], ebx
mov ebx, dword [esp + 0x24]
push 2
lea eax, [esi - 1]
mov dword [ebp], edi
mov dword [ebp + 0x34], eax
mov eax, 1
lea ecx, [ebx + 7]
mov dword [ebp + 4], 0x2a
shl eax, cl
mov dword [ebp + 0x4c], eax
dec eax
mov dword [ebp + 0x54], eax
mov eax, 0xaaaaaaab
mov dword [ebp + 0x50], ecx
add ecx, 2
mul ecx
mov dword [ebp + 0x1c], 0
shr edx, 1
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x58], edx
mov eax, dword [edi + 0x20]
push esi
push dword [edi + 0x28]
call eax
push 2
push dword [ebp + 0x2c]
mov dword [ebp + 0x38], eax
push dword [edi + 0x28]
mov eax, dword [edi + 0x20]
call eax
push 2
push dword [ebp + 0x4c]
mov dword [ebp + 0x40], eax
push dword [edi + 0x28]
mov eax, dword [edi + 0x20]
call eax
mov dword [ebp + 0x44], eax
lea ecx, [ebx + 6]
mov eax, 1
mov dword [ebp + 0x16c0], 0
shl eax, cl
push 4
push eax
mov dword [ebp + 0x169c], eax
push dword [edi + 0x28]
mov eax, dword [edi + 0x20]
call eax
mov esi, dword [ebp + 0x169c]
add esp, 0x30
cmp dword [ebp + 0x38], 0
mov edx, eax
mov dword [ebp + 8], edx
lea ecx, [esi*4]
mov dword [ebp + 0xc], ecx
je 0x41ec57
cmp dword [ebp + 0x40], 0
je 0x41ec57
cmp dword [ebp + 0x44], 0
je 0x41ec57
test edx, edx
je 0x41ec57
mov eax, esi
mov byte [ebp + 0x24], 8
shr eax, 1
push edi
lea eax, [edx + eax*2]
mov dword [ebp + 0x16a4], eax
lea eax, [edx + esi*2]
add eax, esi
mov dword [ebp + 0x1698], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x84], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x88], eax
call fcn.0041ede0
add esp, 4
test eax, eax
je 0x41eb40
mov ebx, 0xfffffffe
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
ret
mov esi, dword [edi + 0x1c]
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 0x41eb78
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
jne 0x41eb82
lea ecx, [eax + 0x37]
jmp 0x41eb91
test eax, eax
mov ecx, 0x71
mov edx, 0x2a
cmovne ecx, edx
mov dword [esi + 4], ecx
push 0
push 0
push 0
cmp eax, 2
jne 0x41eba6
call fcn.0041fb20
jmp 0x41ebab
call fcn.0041f8a0
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esi + 0x28], 0
push esi
call fcn.00420300
mov esi, dword [edi + 0x1c]
xor edx, edx
xor ebx, ebx
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 fcn.0042e960
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x48357a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x483578]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x48357c]
mov dword [esi + 0x90], eax
movzx eax, word [ecx*4 + 0x48357e]
pop ebp
mov dword [esi + 0x7c], eax
mov eax, ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x16b4], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x48], ebx
pop ebx
pop edi
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
pop esi
ret
mov dword [ebp + 4], 0x29a
mov eax, dword [str.insufficient_memory]
push edi
mov dword [edi + 0x18], eax
call fcn.0041e880
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 0xfffffffc
pop esi
ret
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
ret
mov eax, 0xfffffffa
pop esi
ret