Function at 0x408e20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490a8f
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4be434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
mov ecx, edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x14], 0
call fcn.00405380
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], 0
cmp eax, dword [ebp - 0x128]
jne 0x408e91
mov esi, 2
jmp 0x409be6
push 3
xor eax, eax
mov dword [ebp - 0x78], 0
push 0x49c98c
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00407630
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00405b20
mov edx, dword [ebp - 0x74]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x408f11
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408f07
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
test esi, esi
je 0x408f33
call fcn.00403080
mov ecx, eax
call fcn.00403320
mov ecx, eax
call fcn.00439ce0
mov esi, eax
test si, si
jne 0x409be6
push 4
xor eax, eax
mov dword [ebp - 0x78], 0
push 0x49c994
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.00407630
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.004059e0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x408fb8
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408fae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408fae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp dword [ebp - 0x90], eax
je 0x40940d
lea ecx, [ebp - 0x18]
call fcn.00437780
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004380d0
lea ecx, [ebp - 0x18]
call fcn.00438110
cmp dword [ebp - 0x8c], 8
lea ecx, [ebp - 0xa0]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov esi, eax
cmovae ecx, dword [ebp - 0xa0]
push 0x49ca24
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40902e
xor ebx, ebx
cmp esi, 1
sete bl
jmp 0x409096
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
push str.Admin
cmovae eax, dword [ebp - 0xa0]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40905b
xor ebx, ebx
cmp esi, 2
sete bl
jmp 0x409096
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
push str.Shell
cmovae eax, dword [ebp - 0xa0]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x409401
cmp esi, 2
jne 0x4090b2
lea ecx, [ebp - 0x18]
call fcn.00438b80
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004377c0
test ebx, ebx
jne 0x40940d
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
jmp 0x4090c7
cmp esi, 1
jne 0x409401
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004377c0
push 0xb
xor eax, eax
mov dword [ebp - 0x18], 0
push str.ServiceType
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407630
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.004059e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x40913d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409133
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409133
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x5c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push str.Daemon
push eax
mov dword [ebp - 0x14], 7
call ebx
add esp, 8
test eax, eax
jne 0x409197
call fcn.00403080
mov ecx, eax
call fcn.00403320
mov ecx, eax
call fcn.0043a020
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b600
mov esi, eax
jmp 0x4093bc
lea ecx, [ebp - 0x11c]
call fcn.00404d70
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401a00
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004060d0
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4092a2
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x40924d
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x409230
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x409226
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092d2
mov eax, edx
push ecx
push eax
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4091f7
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x409283
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092d2
push ecx
push esi
call fcn.004876f4
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x4092e2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4092d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4092d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
push 0x49c994
lea ecx, [ebp - 0x40]
call fcn.00401a00
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x11c]
call fcn.00406ad0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x409342
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409338
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409338
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004050e0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push ecx
push eax
call fcn.0040b440
mov edx, dword [ebp - 0x44]
add esp, 8
mov esi, eax
cmp edx, 8
jb 0x40939d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409393
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4093ec
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00404ec0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x409b87
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4093f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4093f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
jmp 0x409b87
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004377c0
push 9
xor eax, eax
mov dword [ebp - 0x48], 0
push str.Temporary
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00407630
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xe
mov ebx, 1
mov ecx, edi
push eax
mov dword [ebp - 0x14], ebx
call fcn.00405b20
test eax, eax
je 0x409485
push str.Temporary
lea ecx, [ebp - 0x70]
call fcn.00401a00
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], 3
push eax
mov ecx, edi
call fcn.004059e0
mov ebx, 7
cmp dword [eax + 0x10], 0
jne 0x409485
lea esi, [ebx - 6]
jmp 0x409487
xor esi, esi
test bl, 4
je 0x4094dd
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x4094c9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4094bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40956e
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xe
test bl, 2
je 0x409536
mov edx, dword [ebp - 0x5c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x409522
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409518
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40956e
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 4
test bl, 1
je 0x40957e
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40957e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409574
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov ebx, dword [ebp - 0x120]
test esi, esi
je 0x40959d
mov ecx, ebx
call fcn.0040ad70
test eax, eax
je 0x40959d
mov esi, 0x11
jmp 0x409b87
push 5
xor eax, eax
mov dword [ebp - 0x18], 0
push str.Entry
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407630
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xb8]
mov ecx, edi
push eax
call fcn.004059e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x409616
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40960c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40960c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xc
push str.EncodePathU8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00407630
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x13
push eax
mov ecx, edi
call fcn.00405b20
mov edx, dword [ebp - 0x44]
mov esi, eax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x409698
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40968e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40968e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
test esi, esi
je 0x409853
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x88]
call fcn.00401a00
push str.EncodePathU8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x14
call fcn.00401a00
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.004059e0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x16
jb 0x4096e0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0047a670
add esp, 8
mov esi, eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x17
push eax
mov ecx, edi
call fcn.00405b20
cmp eax, 1
lea eax, [ebp - 0xb8]
sete cl
movzx ecx, cl
push ecx
push eax
push esi
mov ecx, ebx
call fcn.0040a2a0
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0x16
cmp edx, 8
jb 0x40975a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409750
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40984d
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x15
cmp edx, 8
jb 0x4097ac
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4097a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40984d
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 0x14
cmp edx, 8
jb 0x4097fa
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4097f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40984d
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x409a77
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409a6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a6d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.EncodePath
lea ecx, [ebp - 0x40]
call fcn.00401a00
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x18
push eax
mov ecx, edi
call fcn.00405b20
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x4098b1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4098a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4098a7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
push str.OnlyVerifyCertSigner
test esi, esi
je 0x4099ff
lea ecx, [ebp - 0x70]
call fcn.00401a00
mov eax, dword [ebp - 0x12c]
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x14], 8
jb 0x4098d8
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401a00
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0047a2b0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x1b
push eax
mov ecx, edi
call fcn.00405b20
cmp eax, 1
lea eax, [ebp - 0xb8]
sete cl
movzx ecx, cl
push ecx
push eax
push esi
mov ecx, ebx
call fcn.0040a2a0
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0x1a
cmp edx, 8
jb 0x40995f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409955
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099f9
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x19
cmp edx, 8
jb 0x4099ad
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4099f9
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x409a77
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409a6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a6d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp - 0x40]
call fcn.00401a00
mov esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1c
call fcn.00405b20
cmp eax, 1
mov ecx, ebx
sete al
movzx eax, al
push eax
lea eax, [ebp - 0xb8]
push eax
push esi
call fcn.0040a2a0
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x409a77
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409a6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a6d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
test si, si
jne 0x409b2e
mov esi, dword [ebp - 0x12c]
add esi, 0x18
cmp esi, dword [ebp - 0x128]
je 0x409b24
cmp dword [ebx + 0x28], 0
je 0x409aaa
push 1
push 0x49c63c
lea ecx, [ebx + 0x18]
call fcn.00401d80
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00410910
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 0x1d
jb 0x409ac5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebx + 0x18]
call fcn.00401d80
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x409b0f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408f01
push edx
push ecx
call fcn.004876f4
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x128]
jne 0x409a95
mov edi, dword [ebp - 0x130]
push edi
mov ecx, ebx
call fcn.00408940
xor esi, esi
mov edx, dword [ebp - 0xa4]
cmp edx, 8
jb 0x409b6a
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409bb9
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x409bc9
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409bbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409bbf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
lea ecx, [ebp - 0x12c]
call fcn.00401bb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487702
mov esp, ebp
pop ebp
ret 4