Function at 0x1001b149
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x1001b4f5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x30], 0x9b0
mov dword [ebp - 0x58], 0x1000863c
cmp dword [ebp - 0x30], 0xb11
jle 0x1001b220
and dword [ebp - 0x18], 0
jmp 0x1001b18c
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x81
jge 0x1001b220
and dword [ebp - 0x10], 0
jmp 0x1001b1a6
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xef5
jge 0x1001b21b
and dword [ebp - 0x20], 0
jmp 0x1001b1bc
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x711d
jge 0x1001b219
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xf4]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0xf4]
call fcn.1002281d
jmp 0x1001b1b5
jmp 0x1001b19f
jmp 0x1001b185
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0x30], 0x708
jge 0x1001b23b
push dword [ebp - 0x58]
call fcn.10077843
pop ecx
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xdc]
movzx eax, byte [eax]
test eax, eax
je 0x1001b2c3
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x70], eax
push 0
mov ecx, dword [ebp - 0x70]
call fcn.10022bff
mov dword [eax], 0xfb6318d5
mov eax, dword [ebp - 0x50]
mov dword [eax], 0xfb6318d5
jmp 0x1001b4f0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], 0x4230
mov dword [ebp - 0x88], 0x1000866c
cmp dword [ebp - 0x40], 0x4579
jle 0x1001b3b4
and dword [ebp - 8], 0
jmp 0x1001b300
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x375a
jge 0x1001b3b4
and dword [ebp - 0xc], 0
jmp 0x1001b31a
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x5c4f
jge 0x1001b3af
and dword [ebp - 0x14], 0
jmp 0x1001b334
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x4de2
jge 0x1001b3aa
and dword [ebp - 0x1c], 0
jmp 0x1001b34a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2f84
jge 0x1001b3a8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sar eax, cl
mov ecx, dword [ebp - 0x14]
and ecx, dword [ebp - 0x1c]
xor eax, ecx
cdq
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], edx
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
lea ecx, [ebp - 0x10c]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0x10c]
call fcn.1002281d
jmp 0x1001b343
jmp 0x1001b32d
jmp 0x1001b313
jmp 0x1001b2f9
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x40], 0x4216
jge 0x1001b3d2
push dword [ebp - 0x88]
call fcn.10077843
pop ecx
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x24]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.10022bff
cmp dword [eax], 0xe1947684
jne 0x1001b49e
mov eax, dword [ebp - 0x7c]
mov dword [eax], 0xfffffff8
mov eax, dword [ebp - 0x24]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.10022bff
cmp dword [eax], 0
jne 0x1001b459
mov eax, 0xe3c
test eax, eax
jne 0x1001b459
and dword [ebp - 0x38], 0
jmp 0x1001b460
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jle 0x1001b473
mov dword [ebp - 0x48], 1
jmp 0x1001b477
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jl 0x1001b48a
mov dword [ebp - 0x2c], 1
jmp 0x1001b48e
and dword [ebp - 0x2c], 0
mov eax, 0xde45221b
sub eax, dword [ebp - 0x2c]
jne 0x1001b49e
and dword [ebp - 0x34], 0
jmp 0x1001b4a5
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x24]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.10022bff
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x34]
sub edx, dword [ecx]
cmp dword [eax], edx
jg 0x1001b4ca
mov dword [ebp - 0x44], 1
jmp 0x1001b4ce
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jg 0x1001b4e1
mov dword [ebp - 0x4c], 1
jmp 0x1001b4e5
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
jmp 0x1001b58a
lea eax, [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x1001b527
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1001b58a
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001b56a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1001b58a
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0xbc]
call fcn.10022bff
mov dword [eax], 3
jmp 0x1001b55f
mov esp, ebp
pop ebp
ret