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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx + 4]
and al, 2
cmp byte [edi], 3
push ebx
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0
mov byte [esp + 0xb], al
jne 0x1019fd6b
mov esi, edi
call fcn.1019a570
test eax, eax
jne 0x101a00a9
movzx eax, word [edi + 0x46]
mov ebx, dword [edi + 0x74]
movsx edx, byte [edi + 0x44]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x18], edx
mov dx, word [ecx + eax*2]
movzx ecx, word [ebx + 0x1a]
mov dword [esp + 0x1c], eax
mov ah, dl
mov dword [esp + 0x28], ebx
mov al, dh
movzx esi, ax
and esi, ecx
add esi, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x14], esi
jge 0x1019fdbb
push ebx
call fcn.1011dd80
add esp, 4
test eax, eax
je 0x1019fdbb
mov eax, 0xb
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xb], 0
je 0x1019fe12
cmp byte [ebx + 8], 0
je 0x1019fe03
push esi
push ebx
call fcn.1011e380
movzx edx, ax
mov eax, dword [ebx + 0x14]
lea ecx, [edx + eax + 2]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x28]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add esp, 8
cmp ecx, edx
jg 0x1019fe03
mov eax, 1
cmp word [ebx + 0x18], ax
je 0x1019fe03
mov dword [esp + 0x2c], eax
jmp 0x1019fe12
mov eax, edi
call fcn.10180c30
test eax, eax
jne 0x101a00a9
cmp byte [ebx + 8], 0
jne 0x1019fe4e
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x1019fe3f
movzx eax, word [edi + 0x46]
test ax, ax
je 0x1019fe3f
mov ecx, dword [edi + 0x74]
cmp byte [ecx + 8], 0
je 0x1019fe3f
dec eax
mov word [edi + 0x46], ax
jmp 0x1019fe4e
mov eax, edi
call fcn.1019d270
test eax, eax
jne 0x101a00a9
test byte [edi + 1], 0x20
je 0x1019fe6a
mov ecx, dword [edi + 0x40]
mov eax, dword [esp + 0x10]
mov edx, edi
call fcn.1018e160
test eax, eax
jne 0x101a00a9
cmp dword [edi + 0x70], 0
jne 0x1019fe89
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov esi, dword [edi + 0x40]
mov ecx, dword [esp + 0x24]
push 0
push edx
push eax
call fcn.1011e510
add esp, 0xc
mov esi, dword [ebx + 0x48]
call fcn.101741b0
test eax, eax
jne 0x101a00a9
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov edx, ebx
call fcn.10180920
movzx edx, word [esp + 0x42]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push edx
push eax
mov esi, ebx
call fcn.1012a8f0
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x101a00a9
cmp byte [ebx + 8], al
jne 0x1019ffd6
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], eax
jge 0x1019fef4
push ebx
call fcn.1011dd80
add esp, 4
test eax, eax
jne 0x101a00a9
movsx ecx, byte [edi + 0x44]
mov eax, dword [esp + 0x18]
dec ecx
cmp eax, ecx
jge 0x1019ff0e
mov edx, dword [edi + eax*4 + 0x7c]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
jmp 0x1019ff18
mov ecx, dword [edi + 0x74]
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + eax*2 - 2]
movzx ecx, word [ebx + 0x1a]
mov esi, dword [ebx + 0x38]
mov ah, dl
mov al, dh
movzx eax, ax
and eax, ecx
add eax, esi
add esi, 4
mov dword [esp + 0x14], eax
cmp eax, esi
jae 0x1019ff51
mov eax, 0x13859
call fcn.1011a6c0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x4c]
push eax
push ebx
call edx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x54]
mov esi, dword [ebx + 0x48]
movzx eax, ax
add esp, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
call fcn.101741b0
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1019ffac
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
add edx, 4
push edx
add eax, 0xfffffffc
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.101807c0
add esp, 0x14
movzx ecx, word [ebx + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
push eax
dec ecx
push ecx
mov esi, ebx
call fcn.1012a8f0
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x101a00a9
mov ebx, dword [esp + 0x28]
mov ecx, edi
call fcn.101935f0
mov esi, eax
test esi, esi
jne 0x101a00a7
movsx edx, byte [edi + 0x44]
cmp edx, dword [esp + 0x18]
jle 0x101a0048
mov eax, dword [edi + 0x74]
call fcn.1013c030
dec byte [edi + 0x44]
movsx eax, byte [edi + 0x44]
mov esi, dword [esp + 0x18]
cmp eax, esi
jle 0x101a0030
jmp 0x101a0010
mov cl, byte [edi + 0x44]
movsx edx, cl
mov eax, dword [edi + edx*4 + 0x78]
dec cl
mov byte [edi + 0x44], cl
test eax, eax
je 0x101a0028
call fcn.1013c030
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x101a0010
movsx ecx, byte [edi + 0x44]
mov edx, dword [edi + ecx*4 + 0x78]
mov ecx, edi
mov dword [edi + 0x74], edx
call fcn.101935f0
mov esi, eax
test esi, esi
jne 0x101a00a7
cmp dword [esp + 0x2c], 0
je 0x101a0084
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x1c], eax
jl 0x101a0075
mov dword [edi + 4], 0xffffffff
mov cx, word [ebx + 0x18]
dec cx
mov word [edi + 0x46], cx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, edi
call fcn.101434d0
cmp byte [esp + 0xb], 0
mov esi, eax
je 0x101a00a0
push edi
call fcn.1013c300
add esp, 4
mov byte [edi], 3
cmp esi, 0x10
jne 0x101a00a7
xor esi, esi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret