Function at 0x402740
Capabilities:
Accept command line arguments
Connect pipe
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a5b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x425080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 4
mov dword [ebp - 0x15c], eax
call fcn.00406de5
add esp, 4
lea ecx, [ebp - 0x154]
mov dword [eax], 0x402710
push ecx
push 0
push eax
push 0x405d10
push 0
push 0
call fcn.0040bc60
add esp, 0x18
mov dword [ebp - 0x158], eax
test eax, eax
je 0x403465
mov ecx, dword [ebp - 0x154]
test ecx, ecx
je 0x403499
push ecx
push eax
call fcn.00406a79
add esp, 8
test eax, eax
jne 0x403499
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
push 0xb0
movups xmmword [ebp - 0x2c], xmm0
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x2c], ax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x30], 7
call fcn.00408a40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x140], 0
mov ecx, edx
mov dword [ebp - 0x13c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x150], xmm0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402860
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x150]
call fcn.004051e0
sub esp, 8
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x110]
push eax
call fcn.00403fa0
mov ecx, dword [ebp - 0x13c]
cmp ecx, 7
jbe 0x4028d1
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4028c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
add esp, 8
push 0x2f
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x110]
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x110]
push 0x22
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x110]
push 0x22
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x110]
push 0x2f
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x110]
push 0x22
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x110]
push 0x22
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x110]
push 0x2f
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x110]
push 0x22
call fcn.00405650
add esp, 4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x110]
push 0x22
call fcn.00405650
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x4029cb
mov eax, dword [ebp - 0x30]
cmp eax, 0x13
jb 0x4029b3
cmp eax, 7
mov dword [ebp - 0x34], 0x13
push 0x26
lea esi, [ebp - 0x44]
cmova esi, dword [ebp - 0x44]
push str.xmg_drawpad_startup
push esi
call fcn.004084a0
add esp, 0xc
xor eax, eax
mov word [esi + 0x26], ax
jmp 0x4029cb
push ecx
mov byte [ebp - 0x154], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x154]
push 0x13
call fcn.00404f50
mov esi, dword [ebp - 0x1c]
cmp esi, 4
jb 0x402a3c
mov ecx, 3
mov eax, 1
mov dword [ebp - 0x15c], eax
cmp esi, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x140], 0
cmovb ecx, esi
mov dword [ebp - 0x13c], 0
cmp dword [ebp - 0x18], 7
xorps xmm0, xmm0
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x150]
push eax
movups xmmword [ebp - 0x150], xmm0
call fcn.004051e0
mov edx, 0x42208c
lea ecx, [ebp - 0x150]
call fcn.00404d90
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x135], 1
test al, al
jne 0x402a43
mov byte [ebp - 0x135], 0
mov eax, dword [ebp - 0x15c]
test al, 1
je 0x402a9c
and eax, 0xfffffffe
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x13c]
cmp ecx, 7
jbe 0x402a9c
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
mov eax, dword [ebp - 0x15c]
add esp, 8
cmp byte [ebp - 0x135], 0
je 0x402ca3
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.004044e0
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.004044e0
mov cl, 1
call fcn.00402170
add esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.004044e0
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.004044e0
call fcn.004023d0
add esp, 0x30
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x150], xmm0
test al, al
je 0x402c0b
cmp esi, 3
jb 0x403476
lea eax, [esi - 3]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 6
lea ecx, [ebp - 0x150]
push eax
call fcn.004051e0
push 0x422094
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x178]
call fcn.00404c10
add esp, 4
mov ecx, 0x426fa4
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x402bab
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
add esp, 8
mov ecx, dword [ebp - 0x13c]
xor eax, eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
cmp ecx, 7
jbe 0x403167
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40315d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
jmp 0x40315d
cmp esi, 3
jb 0x403480
lea eax, [esi - 3]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 6
lea ecx, [ebp - 0x150]
push eax
call fcn.004051e0
push 0x4220a4
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x178]
call fcn.00404c10
add esp, 4
mov ecx, 0x426fa4
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x402bab
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
jmp 0x402ba1
cmp esi, 7
jb 0x402d0f
or eax, 2
mov ecx, 6
mov dword [ebp - 0x15c], eax
cmp esi, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x140], 0
cmovb ecx, esi
mov dword [ebp - 0x13c], 0
cmp dword [ebp - 0x18], 7
xorps xmm0, xmm0
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x150]
push eax
movups xmmword [ebp - 0x150], xmm0
call fcn.004051e0
mov edx, str.delete
lea ecx, [ebp - 0x150]
call fcn.00404d90
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x135], 1
test al, al
jne 0x402d16
mov byte [ebp - 0x135], 0
mov eax, dword [ebp - 0x15c]
test al, 2
je 0x402d6f
and eax, 0xfffffffd
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x13c]
cmp ecx, 7
jbe 0x402d6f
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
mov eax, dword [ebp - 0x15c]
add esp, 8
cmp byte [ebp - 0x135], 0
je 0x402f19
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.004044e0
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.004044e0
xor cl, cl
call fcn.00402170
add esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.004044e0
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.004044e0
call fcn.004023d0
add esp, 0x30
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x150], xmm0
test al, al
je 0x402e81
cmp esi, 6
jb 0x403485
lea eax, [esi - 6]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 0xc
lea ecx, [ebp - 0x150]
push eax
call fcn.004051e0
push 0x4220c0
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x178]
call fcn.00404c10
add esp, 4
mov ecx, 0x426fa4
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x402bab
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
jmp 0x402ba1
cmp esi, 6
jb 0x40348a
lea eax, [esi - 6]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 0xc
lea ecx, [ebp - 0x150]
push eax
call fcn.004051e0
push 0x4220d0
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x178]
call fcn.00404c10
add esp, 4
mov ecx, 0x426fa4
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x402bab
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
jmp 0x402ba1
cmp esi, 6
jb 0x402f85
or eax, 4
mov ecx, 5
mov dword [ebp - 0x15c], eax
cmp esi, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x140], 0
cmovb ecx, esi
mov dword [ebp - 0x13c], 0
cmp dword [ebp - 0x18], 7
xorps xmm0, xmm0
push ecx
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x150]
push eax
movups xmmword [ebp - 0x150], xmm0
call fcn.004051e0
mov edx, str.query
lea ecx, [ebp - 0x150]
call fcn.00404d90
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0x135], 1
test al, al
jne 0x402f8c
mov byte [ebp - 0x135], 0
mov eax, dword [ebp - 0x15c]
test al, 4
je 0x402fd6
mov ecx, dword [ebp - 0x13c]
cmp ecx, 7
jbe 0x402fd6
mov edx, dword [ebp - 0x150]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402fcc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
add esp, 8
cmp byte [ebp - 0x135], 0
je 0x4032c2
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push eax
call fcn.004044e0
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.004044e0
call fcn.004023d0
add esp, 0x30
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x150], xmm0
test al, al
je 0x4030c5
cmp esi, 5
jb 0x40348f
lea eax, [esi - 5]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 0xa
lea ecx, [ebp - 0x150]
push eax
call fcn.004051e0
push str.success
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x178]
call fcn.00404c10
add esp, 4
mov ecx, 0x426fa4
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x402bab
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
jmp 0x402ba1
cmp esi, 5
jb 0x403494
lea eax, [esi - 5]
mov ecx, 1
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
add eax, 0xa
lea ecx, [ebp - 0x150]
push eax
call fcn.004051e0
push str.fail
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x178]
call fcn.00404c10
add esp, 4
mov ecx, 0x426fa4
push eax
call fcn.00404450
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x402bab
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ba1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
jmp 0x402ba1
push ecx
push edx
call fcn.00407066
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
push 1
push str.D:_A_OICI_GRGW___WD_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x134]
push eax
push 0xffffffffffffffff
push 0
push 0
push 0xff
push 6
push 3
push str..pipeIDTPipe1
mov dword [ebp - 0x134], 0xc
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [ebp - 0x114]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x118], eax
xor esi, esi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
nop word [eax + eax]
lea eax, [ebp - 0x128]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x403287
lea ecx, [ebp - 0x160]
call fcn.00401230
mov ecx, dword [ebp - 0x15c]
cmp ecx, 0x7fffffff
jg 0x403260
mov eax, dword [ebp - 0x160]
jl 0x40324a
cmp eax, 0xfa0a1eff
jae 0x403260
add eax, 0x5f5e100
mov dword [ebp - 0x158], eax
adc ecx, 0
mov dword [ebp - 0x154], ecx
jmp 0x403274
mov dword [ebp - 0x158], 0xffffffff
mov dword [ebp - 0x154], 0x7fffffff
lea ecx, [ebp - 0x158]
call fcn.004058d0
inc esi
cmp esi, 5
jle 0x403210
jmp 0x4032b1
mov eax, dword [0x426fb4]
lea edx, [ebp - 0x60]
cmp dword [0x426fb8], 7
push 0
push edx
lea ecx, [eax + eax]
mov eax, 0x426fa4
cmova eax, dword [0x426fa4]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x118]
call esi
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
lea ecx, [ebp - 0xf8]
call fcn.00403ba0
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [ebp - 0x100]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x104], eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x114], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.00406658
mov ecx, dword [ebp - 0x30]
add esp, 4
cmp ecx, 7
jbe 0x4033c3
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4033b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 7
jbe 0x40340d
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403403
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x403443
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403439
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40347b
push ecx
push edx
call fcn.00407066
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406dd7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push 6
mov dword [ebp - 0x154], 0
call fcn.004060d3
call fcn.00404a90
call fcn.0040c0ca
call fcn.00404a90
call fcn.00404a90
call fcn.00404a90
call fcn.00404a90
call fcn.00404a90
push 1
call fcn.004060d3
int3