Function at 0x403540
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5bcf
mov eax, dword fs:[0]
push eax
sub esp, 0x298
push ebx
push esi
push edi
mov eax, dword [0x50f880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x17c]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00402d40
mov edi, 1
mov dword [ebp - 4], edi
lea esi, [ebp - 0x1f0]
mov dword [ebp - 0x1f8], ebx
call fcn.00401ec0
mov dword [ebp - 0x188], 0xffffffff
mov byte [ebp - 4], 2
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x1c]
call fcn.0041b220
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 4
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x403609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
push esi
lea ebx, [ebp - 0x17c]
mov dword [ebp - 0x178], eax
call fcn.004046f0
mov dword [ebp - 0x18], edi
jmp 0x404513
lea edx, [ebp - 0x20]
mov dword [ebp - 0x180], edx
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x34], edi
jle 0x4044c0
mov edx, str.debug
shr edx, 0x10
mov dword [ebp - 0x9c], edx
mov edi, dword [eax + ecx*4]
mov eax, dword [0x50f008]
mov edx, dword [eax + 0xc]
mov ecx, 0x50f008
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 6
test edi, edi
je 0x403673
test edi, 0xffff0000
jne 0x403677
movzx edi, di
call fcn.0041ae00
test eax, eax
je 0x40369e
push eax
mov eax, edi
lea edi, [ebp - 0x14]
call fcn.0041afb0
jmp 0x40369b
xor eax, eax
jmp 0x40368f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403680
sub eax, edx
sar eax, 1
push edi
lea ecx, [ebp - 0x14]
push ecx
mov ebx, eax
call fcn.0041b280
mov esi, dword [ebp - 0x14]
mov ebx, 7
mov byte [ebp - 4], bl
mov edx, dword [0x50f008]
mov eax, dword [edx + 0xc]
mov ecx, 0x50f008
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x9c], 0
mov byte [ebp - 4], 8
jne 0x4036e7
mov ecx, str.debug
movzx edi, cx
call fcn.0041ae00
test eax, eax
je 0x4036ff
push eax
mov eax, edi
lea edi, [ebp - 0x28]
call fcn.0041afb0
jmp 0x4036ff
push str.debug
lea edx, [ebp - 0x28]
push edx
mov ebx, 5
call fcn.0041b280
mov ebx, 7
lea eax, [ebp - 0x28]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004aa4d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403737
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x40374c
mov dword [ebp - 0x17c], 1
jmp 0x404364
lea ecx, [ebp - 0x68]
push ecx
mov ecx, str.debug1
call fcn.0041b050
lea edx, [ebp - 0x68]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004aa4d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x4037a7
mov dword [ebp - 0x17c], 1
jmp 0x404364
lea ecx, [ebp - 0x84]
push ecx
mov ecx, str.debug2
call fcn.0041b050
lea edx, [ebp - 0x84]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.004aa4d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x40380b
mov dword [ebp - 0x17c], 2
jmp 0x404364
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, str.debug3
call fcn.0041b050
lea edx, [ebp - 0x6c]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.004aa4d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x403866
mov dword [ebp - 0x17c], 3
jmp 0x404364
lea ecx, [ebp - 0x48]
push ecx
mov ecx, str.debug4
call fcn.0041b050
lea edx, [ebp - 0x48]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.004aa4d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x4038c1
mov dword [ebp - 0x17c], 4
jmp 0x404364
lea ecx, [ebp - 0x70]
push ecx
mov ecx, str.console
call fcn.0041b050
lea edx, [ebp - 0x70]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.004aa4d0
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403907
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x403919
mov byte [ebp - 0xf2], 1
jmp 0x404364
lea ecx, [ebp - 0x50]
push ecx
mov ecx, 0x4f0b2c
call fcn.0041b050
lea edx, [ebp - 0x50]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x50]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x40396a
cmp dword [ebp - 0x174], 0
jne 0x404466
mov dword [ebp - 0x174], 4
jmp 0x404364
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x4f0b30
call fcn.0041b050
lea ecx, [ebp - 0x78]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x10
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x78]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
jne 0x4043b9
lea edx, [ebp - 0x58]
push edx
mov ecx, 0x4f0b54
call fcn.0041b050
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0x11
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x58]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x4039e1
mov byte [ebp - 0xf3], 1
jmp 0x404364
lea ecx, [ebp - 0x80]
push ecx
mov ecx, 0x4f0b5c
call fcn.0041b050
lea edx, [ebp - 0x80]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x12
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x80]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403a22
mov byte [ebp - 0x164], 1
jmp 0x404364
cmp byte [ebp - 0x21], 0
je 0x403a4f
cmp dword [esi - 0xc], 0
jl 0x4043f2
cmp word [esi], 0x2f
je 0x403a46
lea eax, [ebp - 0x14]
lea edi, [ebp - 0xf0]
call fcn.0041ad90
mov byte [ebp - 0x21], 0
jmp 0x404364
cmp byte [ebp - 0x23], 0
je 0x403a7c
cmp dword [esi - 0xc], 0
jl 0x4043f2
cmp word [esi], 0x2f
je 0x403a73
lea eax, [ebp - 0x14]
lea edi, [ebp - 0xec]
call fcn.0041ad90
mov byte [ebp - 0x23], 0
jmp 0x404364
cmp byte [ebp - 0x22], 0
je 0x403abd
cmp dword [esi - 0xc], 0
jl 0x4043f2
cmp word [esi], 0x2f
je 0x403ab4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040de60
push eax
lea ecx, [ebp - 0xe8]
push ecx
lea ebx, [ebp - 0x200]
call fcn.0040e6f0
mov byte [ebp - 0x22], 0
jmp 0x404364
lea edx, [ebp - 0x60]
push edx
mov ecx, 0x4f0b60
call fcn.0041b050
lea eax, [ebp - 0x60]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x13
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x60]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403afb
mov byte [ebp - 0x21], 1
jmp 0x404364
lea ecx, [ebp - 0x88]
push ecx
mov ecx, str.appPath
call fcn.0041b050
lea edx, [ebp - 0x88]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x14
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x88]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403b42
mov byte [ebp - 0x23], 1
jmp 0x404364
lea eax, [ebp - 0x3c]
push eax
mov ecx, str.exclude_app
call fcn.0041b050
lea ecx, [ebp - 0x3c]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403b80
mov byte [ebp - 0x22], 1
jmp 0x404364
lea edx, [ebp - 0x90]
push edx
mov ecx, str.Shutdown
call fcn.0041b050
lea eax, [ebp - 0x90]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x16
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x90]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403bca
mov byte [ebp - 0x163], 1
jmp 0x404364
lea ecx, [ebp - 0x98]
push ecx
mov ecx, str.MinPercent
call fcn.0041b050
lea edx, [ebp - 0x98]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x98]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403c5d
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub ecx, eax
dec ecx
cmp ecx, 1
jl 0x404364
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 4]
push eax
call fcn.00454dcf
add esp, 4
cmp eax, 0x64
ja 0x4043fc
push eax
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
call fcn.00402840
inc dword [ebp - 0x2c]
jmp 0x404364
lea eax, [ebp - 0x74]
push eax
mov ecx, str.Large
call fcn.0041b050
lea ecx, [ebp - 0x74]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x18
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x74]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403d97
cmp dword [ebp - 0x1f0], 2
je 0x404459
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub edx, eax
dec edx
cmp edx, 2
jl 0x4043a7
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + eax*4 + 4]
cmp word [ecx], 0x2f
mov esi, dword [edx + eax*4 + 8]
je 0x4043a7
cmp word [esi], 0x2f
je 0x4043a7
lea eax, [ebp - 0x38]
push eax
call fcn.0041b050
push esi
mov byte [ebp - 4], 0x19
call fcn.00454dda
mov ecx, dword [ebp - 0x38]
add esp, 4
cmp dword [ecx - 0xc], 0
jle 0x40439c
test edx, edx
jl 0x40439c
jg 0x403d09
test eax, eax
jb 0x40439c
push edx
push eax
push ecx
lea eax, [ecx - 0x10]
mov dword [ebp - 0x1f0], 1
mov word [ebp - 0x1e0], 0x101
mov dword [ebp - 0x28], esp
mov esi, esp
call fcn.0041b370
lea ecx, [ebp - 0x1f0]
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00401f30
sub esp, 0x68
mov edx, esp
mov dword [ebp - 0x28], esp
push edx
lea edi, [ebp - 0x1f0]
call fcn.00402c60
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov esi, esp
call fcn.0041b370
add eax, 0x10
mov dword [esi], eax
lea edi, [ebp - 0xd8]
mov byte [ebp - 4], 0x19
call fcn.00402650
add dword [ebp - 0x2c], 2
lea ecx, [ebp - 0x38]
call fcn.00406510
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00406510
jmp 0x404384
lea eax, [ebp - 0x94]
push eax
mov ecx, 0x4f0bcc
call fcn.0041b050
lea ecx, [ebp - 0x94]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x1b
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x94]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403e2d
cmp dword [ebp - 0x1f0], 1
je 0x4044b6
sub esp, 0x68
mov edx, esp
mov dword [ebp - 0x30], esp
push edx
lea edi, [ebp - 0x1f0]
mov dword [ebp - 0x1f0], 2
call fcn.00402c60
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
mov byte [ebp - 4], bl
call fcn.00402650
jmp 0x404364
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x4f0bd4
call fcn.0041b050
lea ecx, [ebp - 0x7c]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x1d
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403e8a
mov eax, dword [ebp - 0x1c]
push 5
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
call fcn.00402540
jmp 0x404364
lea edx, [ebp - 0x8c]
push edx
mov ecx, str.fsaf
call fcn.0041b050
lea eax, [ebp - 0x8c]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x1e
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403ef0
mov eax, dword [ebp - 0x1c]
push 6
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
call fcn.00402540
jmp 0x404364
lea ecx, [ebp - 0x40]
push ecx
mov ecx, str.analysis
call fcn.0041b050
lea edx, [ebp - 0x40]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x1f
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x40]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403f4c
mov eax, dword [ebp - 0x1c]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
call fcn.00402540
jmp 0x404364
lea eax, [ebp - 0x44]
push eax
mov ecx, str.optimize
call fcn.0041b050
lea ecx, [ebp - 0x44]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x20
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x403fa9
mov eax, dword [ebp - 0x1c]
push 9
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
call fcn.00402540
jmp 0x404364
lea edx, [ebp - 0x4c]
push edx
mov ecx, str.checkerrors
call fcn.0041b050
lea eax, [ebp - 0x4c]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x21
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x404006
mov eax, dword [ebp - 0x1c]
push 0xc
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
call fcn.00402540
jmp 0x404364
lea ecx, [ebp - 0x54]
push ecx
mov ecx, 0x4f0c2c
call fcn.0041b050
lea edx, [ebp - 0x54]
push edx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x22
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x54]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x4040fb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
lea edx, [ebp - 0x22c]
push edx
lea edi, [ebp - 0x2c]
call fcn.004aa9c0
mov bl, 0x23
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], bl
call fcn.004aaa50
test al, al
je 0x4040d8
lea esi, [ebp - 0xa0]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x174], 0xa
call fcn.004aa360
lea edi, [ebp - 0xb4]
mov byte [ebp - 4], 0x24
call fcn.0041ad90
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00406510
lea esi, [ebp - 0xa8]
lea eax, [ebp - 0x22c]
call fcn.004aa330
lea edi, [ebp - 0xb8]
mov byte [ebp - 4], 0x25
call fcn.0041ad90
mov ecx, esi
call fcn.00406510
lea esi, [ebp - 0x22c]
call fcn.00404850
mov esi, dword [ebp - 0x14]
jmp 0x404364
mov eax, 0x57
call fcn.00417e90
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x178], eax
call fcn.00404850
mov esi, dword [ebp - 0x14]
jmp 0x404364
lea eax, [ebp - 0x5c]
push eax
mov ecx, str.unregister
call fcn.0041b050
lea ecx, [ebp - 0x5c]
push ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x26
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x40413f
mov dword [ebp - 0x174], 0xb
jmp 0x404364
lea edx, [ebp - 0x64]
push edx
mov ecx, 0x4f0c28
call fcn.0041b050
lea eax, [ebp - 0x64]
push eax
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0x27
call fcn.004aa4d0
add esp, 4
lea ecx, [ebp - 0x64]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], bl
call fcn.00406510
cmp byte [ebp - 0xd], 0
je 0x4041bc
sub esp, 0x68
mov ecx, esp
mov dword [ebp - 0x30], esp
push ecx
lea edi, [ebp - 0x1f0]
mov byte [ebp - 0x1dc], 1
call fcn.00402c60
mov byte [ebp - 4], 0x28
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
mov dword [edi], eax
lea edi, [ebp - 0xd8]
mov byte [ebp - 4], bl
call fcn.00402650
jmp 0x404364
cmp dword [esi - 0xc], 0
jl 0x4043f2
cmp word [esi], 0x2f
je 0x404466
cmp dword [esi - 0xc], 0
jl 0x4043f2
movzx eax, word [esi]
push eax
call fcn.00454f4f
add esp, 4
cmp ax, 0x61
jb 0x404270
cmp dword [esi - 0xc], 0
jl 0x4043f2
movzx eax, word [esi]
push eax
call fcn.00454f4f
add esp, 4
cmp ax, 0x7a
ja 0x404270
cmp dword [esi - 0xc], 1
jl 0x4043f2
cmp word [esi + 2], 0x3a
jne 0x404270
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x30], esp
mov edi, esp
call fcn.0041b370
add eax, 0x10
lea ebx, [ebp - 0xa4]
mov dword [edi], eax
call fcn.00401790
mov edi, eax
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 0x29
or dword [ebp - 0x18], 2
push edx
lea ecx, [ebp - 0xac]
call fcn.004b6660
or dword [ebp - 0x18], 4
push eax
mov eax, edi
call fcn.00409a70
add esp, 0xc
mov ebx, 7
mov byte [ebp - 0xd], 1
test al, al
jne 0x404274
mov byte [ebp - 0xd], 0
test byte [ebp - 0x18], 4
je 0x404289
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp - 0xac]
call fcn.00406510
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], 2
je 0x4042a1
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp - 0xa4]
call fcn.00406510
cmp byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x174]
je 0x40433f
test eax, eax
je 0x4042be
cmp eax, 8
jne 0x4043a7
lea eax, [esi - 0x10]
call fcn.0041b370
add eax, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 0x2a
call fcn.0041ad90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00406510
mov eax, dword [ebp - 0x1c]
push 2
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x174], 8
mov dword [ebp - 0x30], esp
mov esi, esp
call fcn.0041b370
add eax, 0x10
lea ebx, [ebp - 0xd8]
mov dword [esi], eax
call fcn.00402770
lea edi, [ebp - 0x2a4]
call fcn.00402520
mov edi, eax
lea esi, [ebp - 0x1f8]
mov byte [ebp - 4], 0x2b
call fcn.00402ba0
lea eax, [ebp - 0x29c]
call fcn.00402ae0
mov esi, dword [ebp - 0x14]
jmp 0x404364
test eax, eax
je 0x40434c
cmp eax, 3
jne 0x404409
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x170]
call fcn.00437a00
mov dword [ebp - 0x174], 3
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
inc ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x34]
jge 0x4044c0
mov eax, dword [ebp - 0x20]
jmp 0x403632
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00406510
mov eax, 0x57
call fcn.00417e90
mov dword [ebp - 0x178], eax
jmp 0x4043c0
mov byte [ebp - 0xf4], 1
mov esi, dword [ebp + 8]
push esi
lea ebx, [ebp - 0x17c]
call fcn.004046f0
or dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
call fcn.00406510
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x1c]
call fcn.00406510
jmp 0x404536
push 0x80070057
call fcn.0041b5f0
push str._nInvalid_minimum_fragmentation_percent_n_n
call fcn.00454df0
add esp, 4
mov eax, 0x57
call fcn.00417e90
mov esi, dword [ebp + 8]
push esi
lea ebx, [ebp - 0x17c]
mov dword [ebp - 0x178], eax
call fcn.004046f0
or dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
call fcn.00406510
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x1c]
call fcn.00406510
lea eax, [ebp - 0x1f0]
call fcn.00402ae0
mov eax, ebx
push eax
jmp 0x404548
push str._nLarge_option_cannot_be_used_simultaneously_with_QD_option_n_n
call fcn.00454df0
add esp, 4
mov eax, 0x57
call fcn.00417e90
mov esi, dword [ebp + 8]
push esi
lea ebx, [ebp - 0x17c]
mov dword [ebp - 0x178], eax
call fcn.004046f0
or dword [ebp - 0x18], 1
lea ecx, [ebp - 0x14]
call fcn.00406510
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x1c]
call fcn.00406510
lea eax, [ebp - 0x1f0]
call fcn.00402ae0
mov edx, ebx
push edx
jmp 0x404548
push str._nLarge_option_cannot_be_used_simultaneously_with_QD_option_n_n
jmp 0x404401
cmp byte [ebp - 0x164], 0
mov esi, dword [ebp - 0x174]
je 0x4044e4
cmp esi, 3
je 0x4044e4
mov eax, 0x57
call fcn.00417e90
mov dword [ebp - 0x178], eax
test esi, esi
jne 0x4044f6
lea eax, [esi + 0x57]
call fcn.00417e90
mov dword [ebp - 0x178], eax
mov esi, dword [ebp + 8]
push esi
lea ebx, [ebp - 0x17c]
call fcn.004046f0
mov ecx, dword [ebp - 0x20]
or dword [ebp - 0x18], 1
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x1f0]
call fcn.00402ae0
lea ecx, [ebp - 0x17c]
push ecx
mov byte [ebp - 4], 0
call fcn.00404580
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret