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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, ecx
or ecx, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
lea ecx, [edx - 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov edi, ecx
or edi, eax
shr edi, 4
and edi, 1
mov dword [esp + 0x2c], edi
mov edi, ecx
shr edi, 0x1c
and edi, 1
test eax, 0xfffffa6f
mov ebx, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], edi
je 0x1001f49e
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x1001f81e
cmp dword [ebp + 0xc], 0
je 0x1001f81e
cmp dword [esi], 0x50435245
je 0x1001f4c4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x6c], edx
lea edi, [esi + 0x14]
mov dword [esp + 0x34], edi
mov dword [esp + 0x68], edi
mov edi, dword [ebp + 8]
add edx, edi
mov dword [esp + 0x70], edx
mov dword [esp + 0xc], edx
mov edx, ecx
shr edx, 5
and edx, 1
mov dword [esp + 0x60], edx
mov edx, ecx
shr edx, 0xb
and edx, 1
mov dword [esp + 0x5c], edx
mov edx, eax
shr edx, 7
and edx, 1
mov dword [esp + 0x54], edx
mov edx, eax
shr eax, 0xa
and eax, 1
mov dword [esp + 0x64], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x48], eax
add eax, 0x340
shr edx, 8
mov dword [esp + 0x4c], eax
mov al, byte [esi + 0x11]
and edx, 1
and ecx, 7
test al, al
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], ecx
mov edi, 0x2d
jbe 0x1001f580
movzx eax, al
cmp eax, 0xf
jl 0x1001f580
lea edi, [eax + eax*2 + 3]
lea eax, [edi*4]
push eax
call dword [0x100bd760]
add esp, 4
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x1001f576
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x20], 1
jmp 0x1001f587
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x3c], ecx
lea ecx, [edi + edi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x44], eax
movzx eax, byte [esi + 0x10]
lea eax, [eax + eax + 2]
cmp eax, 0x2d
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], eax
jle 0x1001f5bf
mov dword [esp + 0x14], edi
mov eax, edi
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1001f5ed
cdq
sub eax, edx
sar eax, 1
mov edx, 1
lea ecx, [ecx + edi*4]
sub edx, eax
lea eax, [ecx + edx*4]
sub ecx, 4
cmp ecx, eax
jb 0x1001f5ed
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x1001f5e0
cmp dword [esp + 0x2c], 0
jne 0x1001f61c
test dword [esi + 0xc], 0x40000000
je 0x1001f61c
test byte [esp + 0x1c], 1
movzx edx, byte [esi + 0x12]
mov dword [esp + 0x10], edx
je 0x1001f620
mov eax, dword [esp + 0x48]
movzx ecx, byte [eax + edx]
mov dword [esp + 0x10], ecx
mov edx, ecx
jmp 0x1001f620
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
test eax, 0x20000000
je 0x1001f654
test eax, 0x4000001
movzx ecx, byte [esi + 0x13]
mov dword [esp + 0x24], ecx
je 0x1001f644
mov eax, dword [esi + 8]
movzx ecx, byte [eax + ecx + 0x100]
mov dword [esp + 0x18], ecx
jmp 0x1001f654
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + eax*4]
cmp dword [esp + 0x3c], ecx
jae 0x1001f679
mov edi, dword [esp + 0x3c]
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
or eax, 0xffffffff
rep stosd dword es:[edi], eax
test edx, edx
jl 0x1001f6c2
test byte [esp + 0x1c], 1
je 0x1001f6a8
mov edi, dword [esp + 0xc]
cmp ebx, edi
jae 0x1001f6e8
lea esp, [esp]
movzx eax, byte [ebx]
mov ecx, dword [esp + 0x48]
movzx eax, byte [eax + ecx]
cmp eax, edx
je 0x1001f6e8
add ebx, 1
cmp ebx, edi
jb 0x1001f690
jmp 0x1001f6e8
cmp ebx, dword [esp + 0xc]
jae 0x1001f6e4
mov edi, edi
movzx ecx, byte [ebx]
cmp ecx, edx
je 0x1001f6e4
add ebx, 1
cmp ebx, dword [esp + 0xc]
jb 0x1001f6b0
jmp 0x1001f6e4
cmp dword [esp + 0x30], 0
je 0x1001f6e4
cmp ebx, dword [esp + 0x6c]
jbe 0x1001f6e4
cmp ebx, dword [esp + 0xc]
jae 0x1001f6e4
cmp byte [ebx - 1], 0xa
je 0x1001f6e4
add ebx, 1
cmp ebx, dword [esp + 0xc]
jb 0x1001f6d5
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
test esi, esi
jl 0x1001f743
xor eax, eax
test edx, edx
setge al
add eax, ebx
cmp eax, dword [esp + 0x28]
jbe 0x1001f743
mov edx, dword [esp + 0x18]
cmp esi, edx
jne 0x1001f720
cmp eax, edi
jae 0x1001f786
jmp 0x1001f710
movzx edx, byte [eax]
add eax, 1
cmp edx, esi
je 0x1001f738
cmp eax, edi
jb 0x1001f710
jmp 0x1001f786
cmp eax, edi
jae 0x1001f786
movzx ecx, byte [eax]
add eax, 1
cmp ecx, esi
je 0x1001f738
cmp ecx, edx
je 0x1001f738
cmp eax, edi
jb 0x1001f724
jmp 0x1001f786
sub eax, 1
cmp eax, edi
jae 0x1001f786
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push 2
push 0
push eax
lea ecx, [esp + 0x44]
push ecx
push 2
push edx
push ebx
mov dword [esp + 0x90], ebx
call fcn.1001d8d0
add esp, 0x1c
test eax, eax
jne 0x1001f7a6
cmp dword [esp + 0x2c], eax
jne 0x1001f786
cmp dword [esp + 0x38], 0xffffffff
jne 0x1001f786
mov eax, ebx
add ebx, 1
cmp eax, edi
jb 0x1001f650
cmp dword [esp + 0x20], 0
je 0x1001f79b
mov ecx, dword [esp + 0x3c]
push ecx
call dword [0x100bd764]
add esp, 4
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x20], 0
mov esi, dword [ebp + 0xc]
je 0x1001f7e2
mov edi, dword [esp + 0x3c]
push 0xac
lea edx, [edi + 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.10039170
add esp, 0xc
cmp dword [esp + 0x7c], 0x2d
jle 0x1001f7d8
mov dword [esp + 0x50], 1
push edi
call dword [0x100bd764]
add esp, 4
cmp dword [esp + 0x50], 0
je 0x1001f7ed
xor eax, eax
jmp 0x1001f7f6
mov eax, dword [esp + 0x7c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x40], 2
jge 0x1001f806
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
sub ebx, ecx
sub edx, ecx
mov dword [esi], ebx
mov dword [esi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret