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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, 1
mov ebx, dword [edi + 0x44]
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x4c]
cmp ebx, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ecx
jne 0x1001f647
xor eax, eax
cmp dword [edi + 0x74], esi
jne 0x1001f658
mov ebp, dword [edi + 0x78]
and ebp, 2
mov dword [esp + 0x30], ebp
jmp 0x1001f664
mov dword [esp + 0x30], 0
mov ebp, dword [esp + 0x30]
mov edx, dword [edi + 0x50]
test edx, edx
je 0x1001f952
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
push 8
and ecx, 4
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
call fcn.1001e3b0
add esp, 8
cmp ebx, esi
mov dword [0x10069b20], eax
jne 0x1001f6df
mov esi, dword [edi + 0x5038]
mov ebp, dword [edi + 0x5034]
mov ecx, ebp
mov dl, byte [esi]
lea eax, [ebp + 1]
shl dl, cl
mov ebp, dword [esp + 0x30]
mov ecx, eax
sar ecx, 3
add ecx, esi
and eax, 7
mov byte [esp + 0x20], dl
mov dword [edi + 0x5038], ecx
mov edx, dword [esp + 0x20]
mov dword [edi + 0x5034], eax
and edx, 0xff
shr edx, 7
mov dword [0x10069b24], edx
jmp 0x1001f6ef
push 2
push edi
call fcn.1001e420
add esp, 8
mov dword [0x10069b24], eax
test ebx, ebx
jle 0x1001f96c
mov dword [esp + 0x18], 0xa46a
mov dword [esp + 0x14], 0x29188
mov esi, 0x10069b30
mov dword [esp + 0x20], ebx
jmp 0x1001f716
mov ebp, dword [esp + 0x30]
push 0xc
push edi
call fcn.1001e3b0
push 9
push edi
mov dword [esi - 4], eax
call fcn.1001e420
add esp, 0x10
cmp eax, 0x120
mov dword [esi], eax
jbe 0x1001f74e
push eax
push str.big_values_too_large___i_n
push 0x10039a88
call fcn.10025fb3
add esp, 0xc
mov dword [esi], 0x120
push 8
push edi
call fcn.1001e420
mov ecx, dword [esp + 0x2c]
add esp, 8
sub ecx, eax
lea edx, [ecx*4 + 0x10051f04]
mov ecx, dword [0x1003f3b8]
test ecx, ecx
mov dword [esi + 0x5c], edx
je 0x1001f77a
mov edx, dword [esp + 0x14]
mov dword [edx + ecx], eax
test ebp, ebp
je 0x1001f782
add dword [esi + 0x5c], 8
push 9
push edi
call fcn.1001e3b0
mov dword [esi + 4], eax
mov ebx, dword [edi + 0x5038]
mov ecx, dword [edi + 0x5034]
add esp, 8
mov dl, byte [ebx]
lea eax, [ecx + 1]
shl dl, cl
mov ecx, eax
and eax, 7
sar ecx, 3
add ecx, ebx
mov dword [edi + 0x5034], eax
test dl, 0x80
mov dword [edi + 0x5038], ecx
je 0x1001f8a1
push 2
push edi
call fcn.1001e420
push edi
mov dword [esi + 8], eax
call fcn.1001f9b0
push 5
push edi
mov dword [esi + 0xc], eax
call fcn.1001e420
push 5
push edi
mov dword [esi + 0x10], eax
call fcn.1001e420
add esp, 0x1c
xor ebp, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebp
lea ebx, [esi + 0x50]
push 3
push edi
call fcn.1001e420
mov edx, dword [esi + 0x5c]
add esp, 8
shl eax, 3
lea ecx, [edx + eax*4]
mov dword [ebx], ecx
mov ecx, dword [0x1003f3b8]
test ecx, ecx
je 0x1001f823
mov edx, dword [esp + 0x18]
shr eax, 3
add edx, ebp
mov dword [ecx + edx*4], eax
inc ebp
add ebx, 4
cmp ebp, 3
jl 0x1001f7f7
mov eax, dword [esi + 8]
test eax, eax
jne 0x1001f845
push 0x100397e8
push 0x10039a88
call fcn.10025fb3
add esp, 8
mov eax, dword [esi + 8]
cmp eax, 2
mov eax, dword [esp + 0x10]
jne 0x1001f87c
cmp eax, 8
jne 0x1001f869
mov dword [esi + 0x3c], 0x24
mov dword [esi + 0x40], 0x120
jmp 0x1001f90c
mov dword [esi + 0x3c], 0x12
mov dword [esi + 0x40], 0x120
jmp 0x1001f90c
cmp eax, 8
jne 0x1001f891
mov dword [esi + 0x3c], 0x36
mov dword [esi + 0x40], 0x120
jmp 0x1001f90c
mov dword [esi + 0x3c], 0x1b
mov dword [esi + 0x40], 0x120
jmp 0x1001f90c
lea ebx, [esi + 0x10]
mov ebp, 3
push 5
push edi
call fcn.1001e420
mov dword [ebx], eax
add esp, 8
add ebx, 4
dec ebp
jne 0x1001f8a9
push 4
push edi
call fcn.1001e420
push 3
push edi
mov ebx, eax
call fcn.1001e420
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [ecx + ecx*8]
shl ecx, 3
lea edx, [ecx + ebx]
add ecx, eax
add ecx, ebx
mov dx, word [edx*2 + 0x10034a72]
mov ax, word [ecx*2 + 0x10034a74]
sar dx, 1
sar ax, 1
movsx edx, dx
movsx ecx, ax
xor eax, eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push edi
call fcn.1001f9b0
push edi
mov dword [esi + 0x48], eax
call fcn.1001f9b0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x28]
add esp, 8
add ebx, 4
add esi, 0xd0
add ecx, 3
dec eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x1001f712
mov ebx, dword [esp + 0x28]
jmp 0x1001f96c
push eax
push ecx
push ebp
push ebx
push 0x10069b20
push edi
mov dword [esp + 0x34], 2
call fcn.1001fa00
add esp, 0x18
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x1001f998
mov esi, 0x10069b2c
mov edi, ecx
test ebx, ebx
jle 0x1001f992
mov ecx, esi
mov edx, ebx
mov ebp, dword [ecx]
add ecx, 0xd0
add eax, ebp
dec edx
jne 0x1001f985
add esi, 0x68
dec edi
jne 0x1001f97d
mov edx, dword [0x10069b20]
pop edi
pop esi
pop ebp
lea ecx, [edx*8]
pop ebx
sub eax, ecx
add esp, 0x1c
ret