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

Disassembly:
sub esp, 0x140
mov eax, dword [0x1058ac14]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x158]
mov edx, dword [esp + 0x164]
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x6c], eax
imul eax, edx, 0x108
lea ebx, [ecx + 0xd5c]
mov dword [esp + 0x60], edx
add ecx, 0x54fc
add ebx, eax
lea eax, [edx + edx*2]
shl eax, 6
add eax, ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x44], eax
xor ecx, ecx
lea eax, [esp + 0x8c]
test edx, edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0xac]
sete cl
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x168]
or ebp, 0xffffffff
mov edi, dword [esp + 0x160]
movzx eax, word [eax + 2]
imul eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
cdq
and edx, 3
lea esi, [edx + eax]
movzx edx, byte [ecx + 0x102edb40]
sar esi, 2
lea ecx, [edi + edx*2]
add ecx, edx
mov edx, dword [esp + 0x20]
imul ecx, ecx, 0xb
dec edx
mov bl, byte [ecx + ebx]
mov ecx, 0xf
nop dword [eax]
nop word [eax + eax]
mov ebp, dword [esp + 0x34]
movzx eax, byte [ecx + 0x102efcf4]
movsx eax, word [ebp + eax*2]
mov ebp, 0xffffffff
imul eax, eax
cmp eax, esi
jg 0x101f1315
dec ecx
cmp ecx, dword [esp + 0x20]
jge 0x101f12f0
jmp 0x101f1317
mov edx, ecx
cmp edx, 0xf
movzx esi, bl
lea eax, [edx + 1]
cmovge eax, edx
add esi, esi
mov dword [esp + 0x5c], eax
xor ecx, ecx
movzx eax, word [esi + 0x102ec940]
imul dword [esp + 0x16c]
cmp dword [esp + 0x60], ecx
mov dword [esp + 0x54], eax
mov eax, 0xc
cmove ecx, eax
mov dword [esp + 0x58], edx
add ecx, dword [esp + 0x44]
mov ebx, dword [ecx + edi*4]
mov ecx, 0x102ecb3e
sub ecx, esi
test edi, edi
jne 0x101f1364
movzx eax, word [ecx]
jmp 0x101f1366
xor eax, eax
mov esi, dword [esp + 0x16c]
imul esi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
test edi, edi
jne 0x101f138d
movzx eax, word [ecx]
jmp 0x101f138f
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edi, ecx
imul esi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0x10], edi
cmp ecx, dword [esp + 0x5c]
jg 0x101f169e
lea eax, [ecx + ecx*2]
lea ebx, [esp + 0xce]
mov dword [esp + 0x30], eax
lea ebx, [ebx + ecx*8]
nop dword [eax + eax]
movzx esi, byte [edi + 0x102efcf4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x168]
lea ecx, [esi + esi]
mov dword [esp + 0x14], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x3c], ebx
movzx edi, word [ecx + eax]
movzx edx, word [eax + esi*2 + 0x20]
mov eax, dword [esp + 0x34]
movzx eax, word [ecx + eax]
mov ecx, eax
shr ax, 0xf
movzx eax, ax
mov dword [esp + 0x7c], eax
movsx eax, cx
mov ebp, eax
neg ebp
test cx, cx
cmovns ebp, eax
mov eax, dword [esp + 0x168]
movzx eax, word [eax + esi*2 + 0xc0]
add ebp, eax
mov eax, ebp
mov dword [esp + 0x48], ebp
imul eax, edx
mov edx, 0x7ff
mov ecx, eax
add eax, 0x10000
shr eax, 0x11
shr ecx, 0x11
cmp eax, 0x7ff
cmova eax, edx
cmp ecx, edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
cmova ecx, edx
mov edx, dword [esp + 0x40]
mov esi, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edx
lea ebp, [ecx*2 + 0x102ecb40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], ebp
movzx eax, byte [eax + 0x102edb41]
mov dword [esp + 0x80], eax
mov eax, edi
neg eax
mov dword [esp + 0x88], eax
mov eax, ecx
imul eax, edi
sub edx, eax
mov dword [esp + 0x2c], edx
nop word [eax + eax]
mov edx, dword [esp + 0x44]
cmp ecx, 2
mov eax, 2
mov ebp, ecx
cmovg ebp, eax
mov ebx, 0x7fffff
mov eax, dword [esp + 0x30]
or edi, 0xffffffff
add eax, ebp
mov dword [esp + 0x50], ebp
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [edx + eax*4 + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], eax
test ecx, ecx
js 0x101f1651
cmp ecx, dword [esp + 0x70]
jg 0x101f1651
mov ebp, dword [esp + 0x48]
mov eax, edx
imul eax, edx
mov edx, dword [esp + 0x74]
imul ebp, ebp
movzx edx, word [edx + 0x102effb0]
sub eax, ebp
mov ebp, dword [esp + 0x28]
imul eax, edx
mov edx, 0x100
imul edx
cmp ecx, 0x43
mov dword [esp + 0x1c], eax
mov eax, 0x43
mov dword [esp + 0x4c], edx
mov edx, ecx
cmovg edx, eax
mov eax, dword [esp + 0x24]
add edx, edx
mov dword [esp + 0x78], edx
mov eax, dword [eax + 8]
movzx eax, word [eax + edx]
movzx edx, word [ebp]
mov ebp, dword [esp + 0x24]
add eax, edx
imul dword [esp + 0x16c]
add eax, dword [ebp]
adc edx, dword [ebp + 4]
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x4c]
cmp edx, ebx
jg 0x101f156f
jl 0x101f156b
cmp eax, edi
jae 0x101f156f
mov edi, eax
mov ebx, edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x28]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + edx]
movzx edx, word [ebp]
mov ebp, dword [esp + 0x24]
add eax, edx
imul dword [esp + 0x16c]
add eax, dword [ebp + 0x10]
adc edx, dword [ebp + 0x14]
add eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
adc edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], 0
cmp edx, ebx
jg 0x101f15c3
jl 0x101f15b7
cmp eax, edi
jae 0x101f15c3
mov edi, eax
mov dword [esp + 0x1c], 1
mov ebx, edx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x7c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov byte [eax - 1], dl
mov edx, dword [esp + 0x1c]
mov word [eax], cx
mov byte [eax - 2], dl
test ecx, ecx
je 0x101f1651
cmp dword [esp + 0x30], 0x2d
jge 0x101f1612
mov edx, dword [esp + 0x80]
lea eax, [edx*2]
add eax, ebp
add eax, edx
mov edx, dword [esp + 0x84]
imul eax, eax, 0xb
movzx eax, byte [eax + edx]
movzx eax, word [eax*2 + 0x102ec940]
jmp 0x101f1614
xor eax, eax
imul dword [esp + 0x16c]
add eax, edi
adc edx, ebx
cmp edx, dword [esp + 0x58]
jg 0x101f1651
jl 0x101f162d
cmp eax, dword [esp + 0x54]
jae 0x101f1651
mov edi, dword [esp + 0x10]
mov ebp, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
jmp 0x101f165d
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x3c]
inc eax
mov edx, dword [esp + 0x88]
add ebx, 4
add dword [esp + 0x2c], edx
inc ecx
add dword [esp + 0x28], 2
add esi, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ebx
cmp eax, 1
jle 0x101f14b0
add dword [esp + 0x30], 3
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0x5c]
jle 0x101f13d0
mov eax, dword [esp + 0x60]
xor ebx, ebx
test eax, eax
setne bl
xor esi, esi
test eax, eax
mov eax, 2
cmove esi, eax
mov eax, dword [esp + 0x34]
lea ebx, [ebx*2 + 0x1e]
add eax, esi
push ebx
push 0
push eax
call fcn.1026c8e0
mov eax, dword [esp + 0x78]
push ebx
add eax, esi
push 0
push eax
call fcn.1026c8e0
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x101f16e9
xor eax, eax
jmp 0x101f1766
mov ecx, dword [esp + 0x64]
xor ebx, ebx
mov edx, dword [esp + 0x68]
lea eax, [ecx + ebp*2]
mov byte [esp + eax*4 + 0xcc], dl
cmp ebp, dword [esp + 0x20]
jl 0x101f175f
movzx esi, byte [ebp + 0x102efcf4]
lea eax, [ecx + ebp*2]
lea edi, [esp + 0xcc]
movzx edx, word [edi + eax*4 + 2]
lea edi, [edi + eax*4]
mov eax, edx
neg eax
cmp byte [edi + 1], 0
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x6c]
movzx ecx, cx
mov word [eax + ebp*2], cx
dec ebp
movsx eax, dx
or ebx, eax
movsx eax, cx
mov ecx, dword [esp + 0x168]
movsx ecx, word [ecx + esi*2]
imul ecx, eax
mov eax, dword [esp + 0x34]
mov word [eax + esi*2], cx
movsx ecx, byte [edi]
cmp ebp, dword [esp + 0x20]
jge 0x101f1703
xor eax, eax
test ebx, ebx
setne al
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026b168
add esp, 0x140
ret