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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x34], ebp
mov al, 0xf
mov edi, dword [esp + 0x74]
mov byte [esp + 0x52], al
mov byte [esp + 0x5f], al
mov byte [esp + 0x69], al
xor eax, eax
mov cl, 0x1f
push eax
mov dl, 0x2f
mov dword [esp + 0x6f], eax
mov dword [esp + 0x28], eax
lea esi, [eax + 8]
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
mov byte [esp + 0x54], cl
mov byte [esp + 0x61], cl
mov byte [esp + 0x6c], cl
mov ecx, dword [ebp + 0x409b0]
mov bl, 0x3f
mov byte [esp + 0x52], dl
mov byte [esp + 0x5f], dl
mov byte [esp + 0x6b], dl
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
inc eax
push 0
mov byte [esp + 0x54], bl
mov byte [esp + 0x61], bl
mov byte [esp + 0x6e], bl
push eax
mov byte [esp + 0x54], 7
mov byte [esp + 0x55], 7
mov byte [esp + 0x56], 0
mov byte [esp + 0x57], 0
mov byte [esp + 0x59], 0x37
mov byte [esp + 0x5b], 0x27
mov byte [esp + 0x5d], 0x17
mov byte [esp + 0x5f], 7
mov byte [esp + 0x60], 0
mov byte [esp + 0x61], 7
mov byte [esp + 0x62], 7
mov byte [esp + 0x63], 0
mov byte [esp + 0x64], 0
mov byte [esp + 0x66], 0x37
mov byte [esp + 0x68], 0x27
mov byte [esp + 0x6a], 0x17
mov byte [esp + 0x6c], 7
mov byte [esp + 0x6d], 0
mov byte [esp + 0x6e], 3
mov byte [esp + 0x6f], 3
mov byte [esp + 0x70], 0
mov byte [esp + 0x71], 0
mov byte [esp + 0x76], 0
mov ebx, 0xff
call edx
mov ecx, dword [ebp + 0x409ac]
xor eax, eax
mov dword [ecx + 8], eax
mov edx, dword [ebp + 0x409ac]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x409ac]
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
cmp eax, dword [edi + 8]
jb 0x100803e4
pop edi
pop esi
mov dword [ebp + 0x20220], ebx
pop ebp
pop ebx
add esp, 0x60
ret 8
mov ebx, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], edx
jmp 0x100803fe
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
push 0
push esi
mov ecx, ebp
call fcn.10077580
mov edx, dword [esp + 0x20]
mov ecx, esi
shl edx, cl
or eax, edx
movzx edi, ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
jge 0x1008043b
lea esi, [esi + eax + 1]
cmp esi, 1
jge 0x10080433
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
jmp 0x1008043b
mov dword [esp + 0x24], 0
sub esi, 1
js 0x10080452
mov edx, edi
mov cx, si
shr dx, cl
cmp dl, 0xff
je 0x10080452
sub esi, 1
jns 0x10080440
test esi, esi
jle 0x10080486
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov ecx, esi
mov edx, 0xffff
shl edx, cl
mov dword [esp + 0x2c], eax
mov ecx, eax
and eax, edi
dec ecx
lea eax, [edi + eax*2]
and ecx, edi
and eax, edx
add ecx, ecx
or eax, ecx
movzx edi, ax
mov dword [esp + 0x20], edi
test esi, esi
jl 0x100804a0
push 0
push 1
mov ecx, ebp
call fcn.10077580
add edi, eax
add esi, 0xfffffff8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
movzx edx, word [esp + 0x28]
movzx eax, di
sub eax, edx
lea eax, [eax*4 + 4]
and eax, 0x3fffc
dec eax
mov ecx, ebx
sar ecx, 4
cdq
idiv ecx
mov esi, dword [esp + 0x18]
movzx ebp, byte [esp + esi + 0x4d]
lea edx, [esp + esi + 0x4a]
xor edi, edi
cmp ebp, eax
jle 0x100804dc
movzx ebp, byte [edx + edi + 4]
inc edi
cmp ebp, eax
jg 0x100804d2
add esi, edi
movzx eax, byte [esp + esi + 0x4d]
imul eax, ecx
sar eax, 2
test edi, edi
je 0x100804f8
movzx ebx, byte [esp + esi + 0x4c]
imul ebx, ecx
sar ebx, 2
sub ebx, eax
xor esi, esi
cmp ebx, 0x80
jge 0x10080513
inc esi
mov ebp, ebx
mov ecx, esi
shl ebp, cl
cmp ebp, 0x80
jl 0x10080504
mov ecx, dword [esp + 0x28]
inc byte [edx]
add eax, ecx
mov ecx, esi
shl eax, cl
shl ebx, cl
movzx eax, ax
mov dword [esp + 0x28], eax
movzx eax, byte [edx - 1]
mov dword [esp + 0x2c], ebx
mov bl, byte [edx]
mov ecx, eax
cmp bl, byte [edx + 1]
jbe 0x10080564
movzx ebx, byte [edx - 2]
inc ecx
and ecx, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
lea ebp, [ebx + ecx]
movzx ebx, byte [esp + ebp + 0x4d]
movzx eax, byte [esp + ebp + 0x4c]
sub eax, ebx
sar eax, 2
mov byte [edx + 1], al
mov eax, dword [esp + 0x38]
mov byte [edx], 1
mov ebx, dword [esp + 0x18]
add ebx, eax
movzx ebp, byte [esp + ebx + 0x4d]
movzx ebx, byte [esp + ebx + 0x4c]
sub ebx, ebp
cmp ebx, 1
jle 0x100805a1
cmp edi, eax
jge 0x10080590
mov eax, edi
dec byte [edx + eax + 3]
movzx ebx, byte [edx - 1]
inc eax
cmp eax, ebx
jl 0x10080581
jmp 0x100805a1
cmp ecx, edi
jg 0x100805a1
cmp eax, edi
jge 0x100805a1
inc byte [edx + eax + 3]
inc eax
cmp eax, edi
jl 0x10080598
mov eax, dword [esp + 0x18]
mov byte [edx - 1], cl
mov ecx, dword [esp + 0x30]
add eax, 0xd
mov dword [ecx], edi
add ecx, 4
cmp eax, 0x27
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
jl 0x100803f6
mov bl, byte [esp + 0x44]
mov al, byte [esp + 0x3c]
add bl, bl
add bl, bl
add bl, bl
or bl, byte [esp + 0x40]
mov cl, al
add bl, bl
add bl, bl
and cl, 3
or bl, cl
test al, 4
je 0x100805f0
test bl, bl
je 0x100805ee
neg bl
jmp 0x100805f0
mov bl, 0x80
mov ebp, dword [esp + 0x34]
mov ecx, dword [ebp + 0x409b0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esp + 0x74]
mov edi, dword [ecx + 0xc]
add eax, 0xc
adc edx, 0
xor ecx, ecx
cmp edx, ecx
jl 0x1008061c
jg 0x1008061a
cmp eax, edi
jb 0x1008061c
xor bl, bl
mov eax, dword [esp + 0x1c]
mov edi, eax
and edi, 1
add byte [esp + edi + 0x14], bl
movzx ebx, word [ebp + 0xaa]
mov dl, byte [esp + edi + 0x14]
mov byte [esp + 0x13], dl
xor edx, edx
div ebx
mov ecx, eax
imul eax, ebx
mov ebx, dword [ebp + 0x205a4]
mov dword [esp + 0x38], edx
movzx edx, word [ebp + 0xb0]
add eax, dword [esp + 0x38]
sub ecx, edx
movzx dx, byte [esp + 0x13]
mov word [ebx + eax*2], dx
test edi, edi
jne 0x10080682
movzx eax, word [ebp + 0xa8]
mov edx, dword [esp + 0x78]
sub ecx, eax
and ecx, 7
sar edx, cl
test dl, 1
je 0x10080682
add dword [esp + 0x1c], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx + 8]
jb 0x100803e0
pop edi
pop esi
mov dword [ebp + 0x20220], 0xff
pop ebp
pop ebx
add esp, 0x60
ret 8