Function at 0x10036869
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1003690d
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x100368ea
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100368cb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x100368e8
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x2c]
call fcn.1000bcff
mov dword [eax], 0xe60b0cea
jmp 0x100368c0
jmp 0x10036908
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10036908
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10036a82
lea eax, [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10036a70
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], 0x1ab9
cmp dword [ebp - 0x44], 0x1384
jge 0x10036a56
push 0x106d82b0
push 0x106d82ac
mov ecx, 0x10613b10
call fcn.10022b2d
mov ecx, eax
call fcn.10022b2d
and dword [ebp - 0xc], 0
jmp 0x10036969
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x106d82b0]
jge 0x100369e9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x10613b10
call fcn.10022b2d
mov ecx, eax
call fcn.10022b2d
cmp dword [ebp - 0x48], 1
jne 0x100369ab
mov eax, dword [ebp - 0x10]
add eax, dword [0x106d8094]
cdq
idiv dword [0x106d82ac]
mov dword [0x106d8094], edx
jmp 0x100369e4
mov eax, dword [0x106d82ac]
add eax, dword [ebp - 0x10]
sub eax, dword [0x106d8094]
cdq
idiv dword [0x106d82ac]
mov dword [0x106d8094], edx
cmp dword [0x106d80a8], 0
jne 0x100369d8
mov dword [ebp - 0x14], 1
jmp 0x100369dc
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [0x106d80a8], eax
jmp 0x10036962
cmp dword [0x106d80a8], 0
jne 0x10036a28
push 0x10026dcb
mov eax, dword [0x106d82ac]
sub eax, dword [0x106d8094]
push eax
push 1
mov ecx, 0x10613a58
call fcn.1003f492
mov dl, 0x20
mov ecx, eax
call fcn.1003fa35
mov ecx, eax
call fcn.1003f492
mov ecx, eax
call fcn.10022e1e
jmp 0x10036a56
push 0x10026dcb
push dword [0x106d8094]
push 2
mov ecx, 0x10613a58
call fcn.1003f492
mov dl, 0x20
mov ecx, eax
call fcn.1003fa35
mov ecx, eax
call fcn.1003f492
mov ecx, eax
call fcn.10022e1e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x10036a6e
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10036a82
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10036a82
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esp, ebp
pop ebp
ret