Function at 0x1001510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x84
push ebx
mov dword [esp + 0x80], ecx
mov ecx, dword [0x10828f0]
mov ebx, ecx
sub ebx, dword [0x10829d0]
add ebx, 0xfffec855
cmp dword [0x1082900], 2
push esi
push edi
mov dword [0x10829d0], ebx
jne 0x100155f
cmp dword [0x1082904], 0
jne 0x100155f
mov esi, dword [0x1082980]
sub ebx, esi
sub ebx, 0x59
jmp 0x100156a
mov esi, dword [0x1082980]
add ebx, 0xfffffff8
add ebx, esi
mov al, bl
mov dword [0x111a030], 0x1084650
add al, cl
xor edi, edi
add byte [0x1082984], al
call fcn.0103ac90
mov edx, dword [0x10829d0]
cmp dword [0x108295c], edi
ja 0x10015b4
jb 0x100159d
cmp dword [0x1082958], esi
ja 0x10015b4
lea ecx, [edx + 0x5c]
mov dword [0x1082944], edi
add ecx, esi
mov dword [0x1082940], edx
xor eax, eax
add ebx, ecx
adc edi, eax
lea esi, [edx + 0x164d2]
mov eax, 0
add esi, ebx
mov edx, 0xb
mov dword [0x10828f8], esi
adc eax, edi
mov dword [0x10828fc], eax
movzx eax, byte [0x1082984]
sub edx, eax
mov eax, dword [0x10828f0]
sub edx, esi
add eax, edx
mov ecx, eax
mov dword [0x10828f0], eax
call fcn.0103ac90
mov dword [0x10828f4], eax
movzx eax, byte [0x1082984]
sub esi, eax
sub esi, 0x59
push 0x8be
mov dword [0x10828f0], esi
call fcn.0100370a
add esp, 4
mov dword [esp + 0x8c], eax
mov edx, 0xffffffa5
mov ecx, 0xffffffff
sub edx, dword [0x10829d0]
push 0x8be
sbb ecx, 0
add dword [0x10828f8], edx
push eax
adc dword [0x10828fc], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x108295c], 0
mov edx, eax
mov dword [0x10828f4], edx
ja 0x100168a
jb 0x1001664
cmp dword [0x1082958], edx
ja 0x100168a
mov eax, dword [0x10829d0]
mov dword [0x1082940], eax
mov dword [0x1082944], 0
lea ecx, [edx + eax]
mov eax, dword [0x10828f0]
add eax, 0x5c
add eax, ecx
mov dword [0x10828f0], eax
sub esp, 0xc
call fcn.010013a0
mov cl, byte [0x10828f8]
xor eax, eax
mov ebx, dword [0x10828f0]
sub cl, 8
mov esi, dword [0x1082980]
add esp, 0xc
mov edx, dword [0x10829d0]
add cl, bl
mov dword [esp + 0x48], esi
cmp dword [0x108295c], eax
ja 0x10016d5
jb 0x10016ca
cmp dword [0x1082958], esi
ja 0x10016d5
mov dword [0x1082940], edx
mov dword [0x1082944], eax
xor edi, edi
mov dword [esp + 0x68], 0x20841d1
lea eax, [edx - 0xb]
neg eax
mov dword [esp + 0x60], eax
adc edi, edi
neg edi
cmp dword [0x108295c], 0
ja 0x100172f
jb 0x1001709
mov esi, dword [0x10828f4]
cmp dword [0x1082958], esi
mov esi, dword [esp + 0x48]
ja 0x100172f
mov eax, dword [0x10828f4]
add ebx, 0x5c
add eax, edx
mov dword [0x1082940], edx
add ebx, eax
mov dword [0x1082944], 0
mov eax, dword [esp + 0x60]
mov dword [0x10828f0], ebx
add cl, al
xor eax, eax
add cl, bl
mov byte [0x1082984], cl
cmp dword [0x108295c], eax
ja 0x1001765
jb 0x100174d
cmp dword [0x1082958], esi
ja 0x1001765
mov dword [0x1082940], edx
add edx, 0x5c
add edx, esi
mov dword [0x1082944], eax
xor eax, eax
add dword [esp + 0x60], edx
adc edi, eax
mov ecx, ebx
call fcn.0103a830
mov edx, dword [0x10829d0]
xor ecx, ecx
mov ebx, edx
mov dword [0x10828f4], eax
add ebx, dword [esp + 0x60]
movzx eax, byte [0x1082984]
adc ecx, edi
mov dword [esp + 0x80], 0xa
mov edi, dword [0x1082940]
add ebx, 0xfffffffc
mov dword [esp + 0x78], ebx
adc ecx, 0xffffffff
mov dword [esp + 0x74], 0x8d
sub ebx, eax
mov dword [esp + 0x84], ecx
mov ecx, dword [0x1082944]
sub ebx, 0x59
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], ecx
cmp edi, 0x437
jne 0x10017dc
test ecx, ecx
jne 0x10017dc
mov edx, 0xfffec855
mov dword [0x10829d0], edx
sub ebx, dword [esp + 0x78]
xor edi, edi
add ebx, 0x66
mov dword [esp + 0x58], 0xc1
mov dword [esp + 0x60], 0
mov eax, 3
xor ecx, ecx
nop dword [eax]
cmp edx, dword [0x1082950]
jne 0x1001810
cmp ecx, dword [0x1082954]
je 0x1001820
cmp esi, dword [0x1082948]
jne 0x1001820
cmp edi, dword [0x108294c]
je 0x1001828
add eax, 2
cmp eax, 0x20
jl 0x1001800
cmp dword [0x1082900], 2
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
jne 0x1001850
cmp dword [0x1082904], 0
jne 0x1001850
mov ah, byte [0x10828f4]
mov al, dl
sub al, ah
sub al, 0x59
jmp 0x100185c
mov ah, byte [0x10828f4]
mov al, ah
sub al, 8
add al, dl
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], ah
cmp edi, 0x437
jne 0x100187b
test ecx, ecx
jne 0x100187b
mov edx, 0xfffec855
mov dword [0x10829d0], edx
mov edi, dword [0x1082928]
mov eax, edi
add eax, dword [0x1082930]
mov ecx, dword [0x108292c]
mov dword [esp + 0x5c], eax
mov eax, ecx
adc eax, dword [0x1082934]
cmp dword [esp + 0x5c], 0x26c
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], eax
jne 0x10018be
test eax, eax
jne 0x10018be
mov ecx, esi
sub ecx, edx
sub ecx, 0x59
jmp 0x10018d3
mov eax, esi
mov ecx, 0xffffffa7
sub eax, edx
lea edx, [eax - 0x137ab]
mov dword [0x10829d0], edx
lea eax, [edx - 0x59]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, 0
sbb eax, eax
cmp dword [0x108295c], 0
mov dword [esp + 0x78], eax
ja 0x100192a
jb 0x1001903
mov eax, dword [0x1082958]
cmp eax, dword [0x10828f4]
ja 0x100192a
mov eax, edx
mov dword [esp + 0x30], eax
mov dword [0x1082940], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [0x1082944], eax
mov ah, byte [esp + 0x1b]
mov al, byte [esp + 0x1a]
add ah, 0x5c
add ah, dl
add al, ah
jmp 0x1001930
mov al, byte [esp + 0x1a]
nop
inc dword [esp + 0x60]
movzx eax, al
sub ebx, eax
sub ebx, dword [esp + 0x54]
add ebx, 0xb
cmp dword [esp + 0x5c], 0x26c
jne 0x1001951
cmp dword [esp + 0x64], 0
je 0x1001964
mov eax, dword [0x10828f4]
sub eax, edx
lea edx, [eax - 0x137ab]
mov dword [0x10829d0], edx
mov edi, dword [esp + 0x78]
mov eax, edx
add eax, dword [esp + 0x54]
mov dword [esp + 0x4c], 0
adc dword [esp + 0x4c], edi
add eax, 0xfffffffc
mov dword [esp + 0x78], eax
adc dword [esp + 0x4c], 0xffffffff
cmp dword [0x108295c], 0
ja 0x10019c9
jb 0x100199d
mov esi, dword [esp + 0x48]
cmp dword [0x1082958], edx
ja 0x10019c9
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [0x1082944], eax
mov eax, ecx
add eax, 0x5c
mov dword [0x1082940], ecx
mov ecx, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esp + 0x78]
add ebx, edx
cmp dword [esp + 0x4c], 0
jb 0x1001a28
ja 0x10019da
cmp eax, dword [0x10828f4]
jbe 0x1001a28
mov eax, edx
xor ebx, ebx
sub eax, esi
mov dword [esp + 0x78], eax
add eax, 0xffffffa7
add eax, edx
adc ebx, ebx
add eax, 0xfffffffc
adc ebx, 0xffffffff
mov dword [esp + 0x4c], ebx
mov ebx, dword [0x10828f4]
test ebx, ebx
jne 0x1001a23
cmp dword [esp + 0x5c], 0x26c
jne 0x1001a0f
cmp dword [esp + 0x64], ebx
je 0x1001a23
mov esi, dword [esp + 0x78]
add esi, 0xfffec855
mov dword [esp + 0x48], esi
mov dword [0x1082980], esi
add ebx, 0xfffffffc
add ebx, esi
mov edi, edx
mov dword [esp + 0x78], 0
add edi, eax
mov dword [esp + 0x54], edi
mov edi, 0
adc edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff8
mov dword [esp + 0x54], eax
adc edi, 0xffffffff
sub al, 8
add al, bl
mov dword [esp + 0x64], edi
cmp dword [esp + 0x78], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov byte [0x1082984], al
ja 0x1001ab2
jb 0x1001a76
mov ecx, dword [esp + 0x2c]
cmp ebx, dword [esp + 0x54]
jae 0x1001ab2
movzx ecx, al
lea eax, [edx + 0x164d2]
add eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x50], 0
adc dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
add eax, ecx
add eax, ebx
lea ebx, [eax*2 + 0x1658a]
sub ebx, ecx
mov ecx, dword [esp + 0x2c]
add ebx, dword [esp + 0x4c]
jmp 0x1001b16
cmp dword [0x108295c], 0
mov edi, dword [esp + 0x54]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x20]
ja 0x1001b1e
jb 0x1001ae3
mov ecx, dword [0x1082958]
cmp ecx, dword [0x10828f4]
mov ecx, dword [esp + 0x2c]
ja 0x1001b1e
xor eax, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], eax
mov esi, edx
mov dword [0x1082944], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x50], eax
mov eax, dword [0x10828f4]
add eax, 0x5c
mov dword [0x1082940], esi
add ebx, eax
add ebx, edx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
cmp dword [esp + 0x68], 1
jb 0x1001c27
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
shld esi, ecx, 1
movzx eax, al
add ecx, ecx
add ecx, edx
mov dword [esp + 0x4c], ecx
mov dword [0x10828f8], ecx
adc esi, 0
lea ecx, [ebx*2 + 0x164d2]
mov dword [0x10828fc], esi
sub ecx, eax
add ecx, dword [esp + 0x4c]
mov dword [0x10828f0], ecx
call fcn.01001230
mov eax, dword [0x1082940]
cmp eax, 0x437
mov dword [esp + 0x30], eax
mov eax, dword [0x1082944]
mov dword [esp + 0x44], eax
jne 0x1001b86
mov bl, 0x55
test eax, eax
je 0x1001b8c
mov bl, byte [0x1082984]
mov edx, dword [0x10829d0]
xor ecx, ecx
mov edi, dword [0x1082928]
mov byte [esp + 0x1a], bl
mov dword [esp + 0x20], edi
lea eax, [edx + 0x164d2]
add eax, dword [0x10828f8]
mov dword [esp + 0x54], eax
adc ecx, dword [0x10828fc]
dec dword [esp + 0x68]
mov dword [esp + 0x78], ecx
mov ecx, edi
add ecx, dword [0x1082930]
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x108292c]
mov esi, ecx
adc esi, dword [0x1082934]
cmp dword [esp + 0x5c], 0x26c
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], esi
jne 0x1001c0f
test esi, esi
jne 0x1001c0f
mov esi, dword [0x1082980]
movzx eax, bl
mov ebx, dword [esp + 0x54]
sub ebx, eax
mov dword [esp + 0x48], esi
mov al, byte [esp + 0x1a]
sub ebx, 0x59
jmp 0x1001930
mov esi, dword [0x1082980]
sub al, bl
add al, 0x55
mov dword [esp + 0x48], esi
mov ebx, 0xffffffa7
jmp 0x1001930
mov byte [esp + 0x1a], al
movzx eax, al
mov dword [esp + 0x54], ebx
cmp ebx, eax
jb 0x1001c67
sub edi, dword [esp + 0x4c]
mov al, bl
mov dword [esp + 0x20], edi
sbb ecx, dword [esp + 0x50]
sub al, byte [esp + 0x4c]
sub al, 0x5b
mov dword [0x1082928], edi
mov dword [esp + 0x2c], ecx
mov dword [0x108292c], ecx
mov dword [esp + 0x1c], eax
mov byte [0x1082984], al
mov byte [esp + 0x1a], al
xor eax, eax
cmp eax, dword [esp + 0x50]
jb 0x1001cd8
mov eax, dword [esp + 0x4c]
ja 0x1001c79
cmp ebx, eax
jbe 0x1001cd8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], eax
movzx eax, byte [esp + 0x1a]
add eax, 0x5c
add eax, dword [esp + 0x1c]
add ebx, eax
mov eax, dword [esp + 0x1c]
sub al, byte [esp + 0x1a]
sub al, dl
mov dword [esp + 0x54], ebx
sub al, 6
cmp dword [esp + 0x30], 0x437
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a], al
mov byte [0x1082984], al
jne 0x1001cd8
cmp dword [esp + 0x44], 0
jne 0x1001cd8
mov esi, 0xfffec855
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], esi
mov dword [0x1082980], esi
mov byte [esp + 0x1a], al
mov eax, edi
add eax, dword [0x1082930]
adc ecx, dword [0x1082934]
cmp eax, 0x26c
jne 0x1001cfa
test ecx, ecx
jne 0x1001cfa
mov ecx, esi
sub ecx, edx
sub ecx, 0x59
jmp 0x1001d09
mov eax, esi
mov ecx, 0xffffffa7
sub eax, edx
lea edx, [eax - 0x137ab]
xor eax, eax
movzx edi, byte [esp + 0x1a]
add ecx, 0x2e
mov dword [esp + 0x78], 0x20841d1
adc eax, eax
shld eax, ecx, 1
add ecx, ecx
add ecx, edx
adc eax, 0
add ebx, 0xfffffff8
mov dword [0x10828fc], eax
add ebx, edx
mov eax, dword [esp + 0x54]
add eax, ecx
mov dword [0x10828f4], ebx
add edx, eax
mov eax, 3
mov dword [esp + 0x64], edx
mov dword [0x10829d0], edx
mov edx, dword [0x10829b8]
cmp edi, edx
je 0x1001d70
lea ecx, [edi - 4]
mov dword [0x10828fc], 0
add ecx, esi
cmp esi, dword [0x10829b4]
je 0x1001d78
add eax, 2
cmp eax, 0x20
jl 0x1001d55
lea edx, [edi - 4]
add edx, ecx
cmp dword [esp + 0x30], 0x437
jne 0x1001d99
cmp dword [esp + 0x44], 0
jne 0x1001d99
mov ebx, 0xfffec855
mov dword [0x10828f4], ebx
mov eax, dword [0x10829a4]
add eax, dword [0x10829a8]
cmp eax, 0x26c
jne 0x1001dc0
sub edx, edi
sub edx, 0x59
xor ecx, ecx
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x5c]
jmp 0x1001ddd
sub dl, byte [esp + 0x1c]
mov esi, 0xffffffa7
add dl, 0x55
mov dword [esp + 0x5c], esi
mov dword [esp + 0x1c], edx
or ecx, 0xffffffff
mov byte [0x1082984], dl
mov eax, dword [0x1082990]
sub eax, 2
mov dword [esp + 0x54], ecx
movzx eax, dl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ecx
je 0x1001dfd
add eax, 0xfffffff8
add eax, esi
jmp 0x1001e02
sub eax, esi
sub eax, 0x59
mov ecx, dword [esp + 0x64]
add eax, ebx
lea edi, [ecx + 0x5c]
add edi, eax
mov dword [0x10828f0], edi
cmp edi, 0xdc6
jbe 0x1001e6e
mov eax, dword [0x108295c]
lea edi, [ecx - 4]
add edi, ebx
mov dword [0x10828f0], edi
cmp eax, dword [esp + 0x50]
ja 0x1001e6e
jb 0x1001e3b
cmp dword [0x1082958], esi
ja 0x1001e6e
mov ecx, dword [esp + 0x64]
movzx esi, dl
mov eax, esi
cdq
mov dword [esp + 0x30], eax
mov dword [0x1082940], eax
mov eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [0x1082944], eax
mov eax, dword [esp + 0x4c]
add eax, 0x5c
add edi, eax
add edi, esi
mov dword [0x10828f0], edi
mov esi, dword [esp + 0x60]
cmp esi, 0x3e
jge 0x1001f76
mov ecx, dword [esp + 0x20]
add ecx, dword [0x1082930]
mov eax, dword [esp + 0x2c]
adc eax, dword [0x1082934]
cmp ecx, 0x26c
jne 0x1001ea8
test eax, eax
jne 0x1001ea8
movzx ecx, dl
mov eax, esi
sub eax, ecx
sub eax, 0x59
cdq
jmp 0x1001ec1
mov al, byte [esp + 0x60]
mov esi, dword [esp + 0x60]
sub al, dl
add al, 0x55
or edx, 0xffffffff
mov byte [0x1082984], al
mov eax, 0xffffffa7
push dword [esp + 0x8c]
sub edi, dword [esp + 0x68]
sub edi, 0x5b
mov dword [0x10828f8], eax
push 0x8be
mov dword [0x10828fc], edx
mov dword [0x10828f4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x10829d0]
mov ebx, dword [0x10828f4]
add eax, ebx
lea edi, [ecx + 0x5c]
add edi, eax
cmp dword [0x1082900], 2
jne 0x1001f63
cmp dword [0x1082904], 0
jne 0x1001f63
mov al, byte [0x1082984]
mov dword [esp + 0x1c], eax
movzx eax, al
sub eax, esi
sub eax, 0x59
cdq
mov esi, eax
mov eax, edx
mov edx, dword [0x108292c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [0x1082944]
mov dword [esp + 0x44], eax
mov eax, dword [0x1082940]
mov dword [esp + 0x30], eax
mov eax, dword [0x1082928]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x4c], esi
mov esi, dword [0x1082980]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jmp 0x1001f82
mov al, byte [0x1082984]
add esi, 0xfffffff8
mov dword [esp + 0x1c], eax
movzx eax, al
add eax, esi
jmp 0x1001f21
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
cmp edi, esi
jb 0x1001fab
sub eax, ecx
mov esi, edi
mov dword [esp + 0x20], eax
sbb edx, 0
mov dword [0x1082928], eax
sub esi, ecx
mov dword [esp + 0x2c], edx
sub esi, 0x5b
mov dword [0x108292c], edx
mov dword [0x1082980], esi
cmp dword [esp + 0x78], 0
jbe 0x10024f9
lea edi, [edi*2 + 0x164d2]
sub edi, ebx
add edi, ecx
cmp dword [esp + 0x30], 0x437
jne 0x1001fe0
cmp dword [esp + 0x44], 0
jne 0x1001fe0
mov dl, 0x55
mov dword [esp + 0x1c], edx
mov byte [0x1082984], dl
jmp 0x1001fe4
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x74], 9
jae 0x100200a
lea eax, [edi + ecx]
mov edi, dword [esp + 0x74]
add ebx, eax
dec edi
mov eax, 0xb
mov dword [0x10828f4], ebx
sub eax, ebx
mov dword [esp + 0x74], edi
sub eax, edi
add esi, eax
mov edi, dword [esp + 0x50]
cmp dword [0x108295c], edi
ja 0x1002033
jb 0x1002024
mov eax, dword [esp + 0x4c]
cmp dword [0x1082958], eax
ja 0x1002037
movzx eax, dl
cdq
mov dword [0x1082940], eax
mov dword [0x1082944], edx
mov eax, dword [esp + 0x4c]
cmp dword [0x1082900], 2
jne 0x100205c
cmp dword [0x1082904], 0
jne 0x100205c
mov edi, eax
mov edx, eax
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x50]
sub edx, ecx
sub edx, 0x59
jmp 0x1002067
mov edx, ecx
mov dword [esp + 0x44], eax
add edx, 0xfffffff8
add edx, eax
mov eax, 0xb
mov dword [0x10828f0], edx
sub eax, ebx
sub eax, dword [esp + 0x58]
add esi, eax
mov dword [esp + 0x48], esi
cmp ebx, 0x451b
jbe 0x100220c
xor edx, edx
cmp esi, dword [esp + 0x4c]
jne 0x10021c9
cmp edx, edi
jne 0x10021c9
mov eax, ebx
mov dword [esp + 0x68], 3
mov dword [esp + 0x64], eax
mov esi, ecx
nop
xor edi, edi
cmp esi, dword [0x1082950]
jne 0x10020c8
cmp edi, dword [0x1082954]
jne 0x10020c8
mov edi, eax
xor edx, edx
jmp 0x10020e1
lea ebx, [eax - 4]
mov edi, eax
add ebx, ecx
xor edx, edx
cmp edi, dword [0x1082948]
jne 0x10020e1
cmp edx, dword [0x108294c]
je 0x10020ed
add dword [esp + 0x68], 2
cmp dword [esp + 0x68], 0x20
jl 0x10020b0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x48]
movzx ecx, al
add al, 0x5c
sub ecx, ebx
sub ecx, 0x5b
mov dword [esp + 0x68], ecx
add cl, byte [esp + 0x80]
add cl, al
movzx eax, cl
cmp ebx, eax
jb 0x100213e
mov eax, dword [esp + 0x20]
mov cl, bl
mov ebx, dword [esp + 0x64]
sub eax, edi
mov dword [esp + 0x20], eax
mov dword [0x1082928], eax
mov eax, dword [esp + 0x2c]
sbb eax, edx
sub cl, bl
mov dword [esp + 0x2c], eax
sub cl, 0x5b
mov dword [0x108292c], eax
jmp 0x1002142
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x68]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x44]
add edx, 0xfffffff5
add eax, edx
mov edx, dword [esp + 0x5c]
sub edx, eax
mov eax, dword [esp + 0x54]
sbb eax, 0
cmp dword [0x1082900], 2
mov dword [esp + 0x6c], eax
jne 0x1002197
cmp dword [0x1082904], 0
jne 0x1002197
movzx eax, cl
mov edi, edx
mov ebx, eax
mov dword [esp + 0x44], edi
sub ebx, dword [esp + 0x64]
mov ecx, edi
sub ecx, eax
sub ebx, 0x59
sub ecx, 0x59
jmp 0x10021aa
movzx eax, cl
add ebx, 0xfffffff8
mov ecx, edx
add ebx, eax
mov dword [esp + 0x44], ecx
add ecx, 0xfffffff8
add ecx, eax
add dl, byte [esp + 0x80]
mov dword [0x10828f4], ebx
mov dword [0x10829d0], ecx
lea eax, [edx - 8]
mov dword [esp + 0x1c], eax
mov byte [0x1082984], al
mov eax, dword [esp + 0x20]
add eax, dword [0x1082930]
mov edi, dword [esp + 0x2c]
mov edx, edi
adc edx, dword [0x1082934]
mov dword [esp + 0x68], eax
cmp eax, 0x26c
jne 0x10021ff
test edx, edx
jne 0x10021ff
mov edx, ecx
sub edx, dword [esp + 0x44]
sub edx, 0x59
mov dword [0x10828f0], edx
jmp 0x1002210
mov edx, 0xffffffa7
mov dword [0x10828f0], edx
jmp 0x1002210
mov edi, dword [esp + 0x2c]
cmp dword [0x108295c], 0
ja 0x1002241
jb 0x1002223
cmp dword [0x1082958], ebx
ja 0x1002241
lea eax, [ebx + ecx]
mov dword [0x1082940], ecx
add edx, 0x5c
mov dword [0x1082944], 0
add edx, eax
mov dword [0x10828f0], edx
cmp dword [esp + 0x58], 9
jae 0x1002300
mov eax, dword [esp + 0x20]
mov edx, edi
add eax, dword [0x1082930]
mov dword [esp + 0x68], eax
adc edx, dword [0x1082934]
cmp eax, 0x26c
jne 0x1002276
test edx, edx
jne 0x1002276
mov edx, ecx
sub edx, ebx
sub edx, 0x59
jmp 0x100228b
mov eax, ecx
mov edx, 0xffffffa7
sub eax, ebx
lea ebx, [eax - 0x137ab]
mov dword [0x10828f4], ebx
mov dword [0x10828f0], edx
cmp esi, ecx
jb 0x10022ba
mov eax, dword [esp + 0x20]
mov ecx, esi
sub eax, edx
mov dword [esp + 0x20], eax
sbb edi, 0
mov dword [0x1082928], eax
sub ecx, edx
mov dword [0x108292c], edi
sub ecx, 0x5b
mov dword [0x10829d0], ecx
mov esi, dword [esp + 0x20]
mov eax, esi
dec dword [esp + 0x58]
add eax, dword [0x1082930]
mov dword [esp + 0x64], eax
mov eax, dword [0x1082934]
mov dword [esp + 0x68], edi
adc dword [esp + 0x68], eax
cmp dword [esp + 0x64], 0x26c
jne 0x10022ec
cmp dword [esp + 0x68], 0
je 0x1002304
mov eax, dword [esp + 0x58]
sub eax, ebx
lea ebx, [eax - 0x137ab]
mov dword [0x10828f4], ebx
jmp 0x1002304
mov esi, dword [esp + 0x20]
cmp edx, ecx
jb 0x1002326
sub esi, ebx
mov ecx, edx
mov dword [0x1082928], esi
sbb edi, 0
sub ecx, ebx
sub ecx, 0x5b
mov dword [0x108292c], edi
mov dword [0x10829d0], ecx
cmp dword [0x1082900], 2
jne 0x1002346
cmp dword [0x1082904], 0
jne 0x1002346
mov eax, dword [esp + 0x1c]
movzx eax, al
sub ebx, eax
sub ebx, 0x59
jmp 0x1002352
mov eax, dword [esp + 0x1c]
movzx eax, al
add eax, 0xfffffff8
add ebx, eax
xor eax, eax
cmp edx, ebx
jb 0x100236f
sub esi, ecx
mov ebx, edx
mov dword [0x1082928], esi
sbb edi, eax
sub ebx, ecx
mov dword [0x108292c], edi
sub ebx, 0x5b
shld eax, ebx, 1
add ebx, ebx
add ebx, ecx
mov dword [0x10828f8], ebx
mov ebx, dword [esp + 0x78]
adc eax, 0
sub ecx, ebx
mov dword [0x10828fc], eax
sub ecx, 0x5b
mov dword [0x1082980], ecx
call fcn.01001230
mov esi, dword [0x1082980]
dec ebx
mov eax, dword [0x1082944]
mov edi, esi
sub edi, dword [esp + 0x80]
mov ecx, dword [0x10829d0]
sub edi, 0x5b
cmp dword [esp + 0x80], 8
mov edx, dword [0x108292c]
mov dword [esp + 0x44], eax
mov eax, dword [0x1082940]
mov dword [esp + 0x78], ebx
mov bl, byte [0x1082984]
mov dword [esp + 0x30], eax
mov eax, dword [0x1082928]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
jae 0x100248a
add eax, dword [0x1082930]
adc edx, dword [0x1082934]
cmp eax, 0x26c
jne 0x1002429
test edx, edx
jne 0x1002429
mov ebx, dword [0x10828f4]
mov eax, ecx
sub eax, ebx
sub eax, 0x59
jmp 0x1002442
mov ebx, ecx
mov eax, 0xffffffa7
sub ebx, dword [0x10828f4]
sub ebx, 0x137ab
mov dword [0x10828f4], ebx
mov edx, dword [esp + 0x80]
dec edx
cmp dword [esp + 0x30], 0x437
mov dword [esp + 0x80], edx
jne 0x100246f
cmp dword [esp + 0x44], 0
jne 0x100246f
mov edi, 0xfffec855
mov dword [esp + 0x50], 0xffffffff
lea esi, [esi*2 + 0x164d2]
sub esi, ebx
add esi, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], esi
mov dword [0x1082980], esi
jmp 0x10024ca
cmp dword [0x1082900], 2
jne 0x10024ac
cmp dword [0x1082904], 0
jne 0x10024ac
mov edx, dword [esp + 0x1c]
movzx eax, dl
sub eax, dword [esp + 0x58]
sub eax, 0x59
jmp 0x10024bc
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
add ebx, 0xfffffff8
movzx eax, dl
add eax, ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x50], ebx
mov ebx, dword [0x10828f4]
mov esi, ecx
mov dword [esp + 0x54], 0
add esi, edi
mov edi, dword [esp + 0x54]
adc edi, dword [esp + 0x50]
add esi, 4
mov dword [esp + 0x5c], esi
adc edi, 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
jmp 0x1001e06
mov esi, dword [esp + 0x4c]
sub edi, ebx
mov eax, dword [esp + 0x1c]
sub ebx, esi
sub ebx, dword [esp + 0x88]
sub edi, ecx
movzx eax, al
add edi, 0xb
add ebx, 0xb
cmp ecx, eax
jb 0x1002530
mov eax, dword [esp + 0x20]
sub eax, esi
mov dword [0x1082928], eax
sbb edx, dword [esp + 0x50]
mov dword [0x108292c], edx
lea eax, [ebx + edi]
add eax, ecx
mov ecx, dword [esp + 0x88]
add ecx, 0xfffffff8
add eax, ecx
cmp dword [0x1082900], 2
jne 0x1002559
cmp dword [0x1082904], 0
jne 0x1002559
sub al, bl
sub al, 0x59
jmp 0x100255e
sub bl, 8
add al, bl
mov byte [0x1082984], al
lea eax, [edi + 0x582]
lea ecx, [eax + edi*2]
mov dword [0x10829d0], eax
lea eax, [ecx + 0x586]
mov dword [0x10828f8], 0x58a
mov dword [0x10828fc], 0
mov dword [0x10828f0], ecx
mov dword [0x10828f4], eax
call fcn.01068700
movzx ecx, byte [0x1082984]
add ecx, dword [0x10828f8]
mov dword [0x10829d0], eax
mov eax, dword [0x1082980]
add eax, 0x5c
add eax, ecx
mov dword [0x1082980], eax
add dword [ebx + ebx*4 - 0xfea74a4], 0x8b010828
or eax, 0x10828f4
add edx, 0xfffffff8
add edx, ecx
mov dword [0x10828fc], 0
cmp dword [0x108295c], 0
mov dword [0x10828f8], edx
ja 0x100261e
jb 0x10025f4
cmp dword [0x1082958], ecx
ja 0x100261e
mov eax, dword [0x10829d0]
mov dword [0x1082940], eax
add eax, 0x5c
add ecx, eax
mov dword [0x1082944], 0
xor eax, eax
add ecx, edx
mov dword [0x10828f8], ecx
adc eax, eax
mov dword [0x10828fc], eax
movzx eax, byte [0x1082984]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret