Function at 0x40c860
Capabilities:
Accept command line arguments
Check mutex on windows
Create process on windows
Delete registry value
Hide graphical window
Move file
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xab0
push ebx
push ebp
push esi
push str.____Program_Start_n
call fcn.0044e9b0
push str.test.txt
call fcn.0056cc76
push str.c:comsik.txt
call fcn.0056cc76
push str.GunBound.INI
call fcn.0056cc76
xor ebp, ebp
push ebp
push str.gunbound.erl
lea eax, [esp + 0x194]
push 0x89d020
push eax
call fcn.00450890
lea ecx, [esp + 0x19c]
push ecx
call fcn.0056cc76
mov eax, dword [0x5fc7e8]
add esp, 0x24
push 1
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0x1ba
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc738]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], ebp
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc740]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 2
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc748]
push 1
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 4
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc750]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 5
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc758]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 8
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc760]
push 1
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xa
push edx
push eax
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc768]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0xf
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc770]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0x14
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc778]
push 1
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0x19
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc780]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0x1e
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc788]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0x32
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc790]
push 1
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0x46
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc798]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0x4b
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc7a0]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0x50
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc7a8]
push 1
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x62
push edx
push eax
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc7b0]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0x64
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc7b8]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0xa0
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc7c0]
push 1
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xc8
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov edx, dword [0x5fc7c8]
push 1
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0x100
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov ecx, dword [0x5fc7d0]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0x168
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
mov eax, dword [0x5fc7d8]
push 1
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0x3e8
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
push str.SoftnyxGunBound.gme
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
cmp esi, ebp
je 0x40cbc4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x40dc65
call fcn.0054c280
push 0x8158
call fcn.0056ae19
add esp, 4
cmp eax, ebp
je 0x40cbf0
push 0x8a0ef8
push ebp
push eax
call fcn.00450dd0
jmp 0x40cbf2
xor eax, eax
push edi
mov edi, eax
mov dword [0x89deb0], eax
mov dword [0x89ee00], eax
call fcn.00451060
push 0x8158
call fcn.0056ae19
add esp, 4
cmp eax, ebp
je 0x40cc24
push 0x8a0ef8
push 1
push eax
call fcn.00450dd0
jmp 0x40cc26
xor eax, eax
mov edi, eax
mov dword [0x89deb4], eax
mov dword [0x89edfc], eax
call fcn.00451060
push 0x8158
call fcn.0056ae19
add esp, 4
cmp eax, ebp
je 0x40cc57
push 0x8a0ef8
push 2
push eax
call fcn.00450dd0
jmp 0x40cc59
xor eax, eax
mov edi, eax
mov dword [0x89deb8], eax
mov dword [0x89ee04], eax
call fcn.00451060
push 0x200c
call fcn.0056ae19
add esp, 4
cmp eax, ebp
je 0x40cc8b
push 0x8a0ef8
push 3
mov edi, eax
call fcn.00408090
jmp 0x40cc8d
xor eax, eax
mov dword [0x89ee08], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
call fcn.0056ce33
mov eax, dword [esp + 0xacc]
mov edi, dword [esp + 0xac8]
add esp, 4
cmp eax, ebp
jne 0x40ccfe
push 0x7f00
push ebp
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], 0x40f100
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0x59d5e0
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push edi
push 0
push 0
push 1
push 1
push 0
push 0
push 0x86000000
push 0x59d5d4
push 0x59d5e0
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
push str.CreateWindow_n
mov ebp, eax
call fcn.0044e9b0
add esp, 4
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [0x89e74c], 1
mov dword [0x89ee2c], ebp
mov dword [0x89ee30], edi
mov dword [0x5b5a00], 0
jne 0x40ce4e
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0x74
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
call fcn.0040bbc0
test eax, eax
mov dword [0x5b5a00], eax
jne 0x40ce46
call fcn.0040a6a0
push 0x10
mov ecx, 0x258
mov edx, 0x320
mov esi, eax
call fcn.0040a4f0
add esp, 4
mov ecx, eax
call fcn.0040bbc0
cmp eax, esi
mov dword [esp + 0x14], eax
jae 0x40ce46
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareSoftnyxGunBoundWC
push reloc.WS2_32.dll_bind
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ce27
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Template
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ce27
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.Template
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0040bbc0
push eax
mov edx, 0x10
mov eax, 0x258
mov ecx, 0x320
call fcn.0040a5d0
add esp, 4
push ebx
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0xad0]
push eax
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
call fcn.004c1fc0
call fcn.00417830
push 0x89dc20
push str.BrokerServerIP:_s_n
call fcn.004c20e0
mov ecx, dword [0x89e740]
push ecx
push str.BrokerServerPort:_d_n
call fcn.004c20e0
add esp, 0x10
push 0x89ee50
mov ecx, 0x8a3884
call fcn.0054e610
test al, al
jne 0x40ceb9
push str.MD5___GME_NOT_FOUND_ERROR_
call fcn.004c20e0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40cec4
sub ecx, esi
cmp ecx, 0x60
jne 0x40dc64
xor esi, esi
mov ebx, eax
lea ebx, [ebx]
lea edx, [esi + 0x89e820]
push edx
push str._02x
push ebx
call fcn.0056cbae
add esp, 0xc
inc esi
add ebx, 2
cmp esi, 0x30
jl 0x40cee0
push 1
call fcn.0056ae19
mov esi, eax
add esp, 4
test esi, esi
je 0x40cf1d
push str.RanOnlinePH
call fcn.005532c0
add esp, 4
jmp 0x40cf1f
xor esi, esi
mov dword [0x89e748], esi
call fcn.00553280
mov esi, eax
push esi
push str.NProtect__Init___d_n
call fcn.0044e9b0
add esp, 8
call fcn.0040bd30
push 0x8a3708
call fcn.0044ec00
cmp esi, 0x755
jne 0x40d7db
mov eax, dword [0x89e864]
test eax, eax
je 0x40cff5
push 0x89d020
lea ebx, [eax + 0x80b7c]
call fcn.00454f60
test al, al
je 0x40cf99
push 0xf4240
push 0x8a3708
call fcn.0044ee40
mov ecx, dword [0x89e864]
add ecx, 0x80b7c
push ecx
call fcn.00455030
jmp 0x40cfac
push 0
push str.error
push str.Can_not_find_EventWord.dat_file
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ebx, ebx
mov edi, edi
lea edx, [ebx + 0x3d0900]
push edx
push 0x8a3708
call fcn.0044ee40
push eax
call fcn.0056cb22
mov ecx, dword [0x89e864]
mov edx, dword [ecx + ebx*8 + 0x80ee8]
add esp, 4
mov dword [esp + 0x14], eax
push 1
lea eax, [esp + 0x18]
push eax
push edx
call fcn.004d3720
mov esi, eax
call fcn.0040ae40
inc ebx
cmp ebx, 3
jl 0x40cfb0
push edi
push ebp
call fcn.0040dec0
mov ebx, eax
push ebx
push str.Initialized___d_n
call fcn.0044e9b0
add esp, 0x10
test ebx, ebx
jne 0x40d0c4
mov eax, dword [0x89e864]
add eax, 0x1a2c9
push eax
lea esi, [esp + 0x16c]
call fcn.0040bc20
add esp, 4
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x89ee08]
mov esi, dword [eax + 0x2004]
push 0x20a3
mov edi, str.localhost
mov dword [esp + 0x18], eax
call fcn.004586e0
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x2008], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x89edf0], eax
mov eax, 6
call fcn.00414110
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
nop
push 0
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
call esi
test eax, eax
je 0x40d29b
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
call edi
test eax, eax
je 0x40d1a1
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40d080
cmp ebx, 0x17
jne 0x40d1a1
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareSoftnyxGunBoundWC
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d151
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.Template
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d146
mov ecx, dword [esp + 0x18]
push ecx
mov edx, 0x10
mov eax, 0x258
mov ecx, 0x320
call fcn.0040a5d0
mov edx, dword [esp + 0x14]
add esp, 4
push str.Template
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebp
call fcn.0040dec0
add esp, 8
test eax, eax
jne 0x40d1a1
mov ecx, dword [0x89e864]
add ecx, 0x1a2c9
push ecx
lea esi, [esp + 0x16c]
call fcn.0040bc20
add esp, 4
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x89edf0], eax
mov eax, 6
call fcn.00414110
mov dword [0x89e74c], 0
mov eax, dword [0x5b5a00]
test eax, eax
jne 0x40d232
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareSoftnyxGunBoundWC
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d232
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.Template
push ecx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d227
mov edx, dword [esp + 0x18]
push edx
mov edx, 0x10
mov eax, 0x258
mov ecx, 0x320
call fcn.0040a5d0
mov eax, dword [esp + 0x14]
add esp, 4
push str.Template
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dl
push edx
call fcn.0040e9f0
mov eax, dword [0x89e748]
add esp, 4
test eax, eax
mov esi, eax
je 0x40d259
call fcn.00553440
push esi
call fcn.0056c052
add esp, 4
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x89ee2a], 1
je 0x40d6d4
test ebx, ebx
je 0x40d6d4
lea eax, [ebx - 0xd]
cmp eax, 0xda
ja case.0x40d294.14
movzx eax, byte [eax + 0x40dcb0]
jmp dword [eax*4 + 0x40dc74]
call fcn.00415140
jmp 0x40d080
mov ecx, dword [0x89e864]
add ecx, 0x296a8
call fcn.00432f90
push eax
mov ecx, 0x5fc7e4
call fcn.00432f90
push eax
push 0x12d
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x18c]
push ecx
call fcn.0056aefc
add esp, 0x10
push 0
push 0x13b
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
push 0x89d020
push 0x12e
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0056aefc
add esp, 0xc
push 0
push 0x13b
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
mov edx, dword [0x89e864]
mov eax, dword [edx + 0x2c940]
push eax
mov ecx, 0x5fc7e4
call fcn.00432f90
push eax
push 0x12f
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x18c]
push ecx
call fcn.0056aefc
add esp, 0x10
push 0
push 0x13b
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
push 0x89d020
push pe_nt_image_headers32
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0056aefc
add esp, 0xc
push 0
push 0x13b
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
mov edx, dword [0x89e864]
push 0x63
push edx
call fcn.00426650
push eax
mov ecx, 0x5fc7e4
call fcn.00432f90
push eax
push 0x131
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x18c]
push eax
call fcn.0056aefc
add esp, 0x10
jmp 0x40d32e
push 0x89d020
push 0x132
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
push 0x13b
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
push 0x89d020
push 0x142
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.0056aefc
add esp, 0xc
jmp 0x40d2e2
mov eax, dword [0x89edd4]
push 0x89d020
push eax
mov ecx, 0x5fc7dc
call fcn.00432f90
push eax
push 0x133
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x190]
push ecx
call fcn.0056aefc
add esp, 0x14
jmp 0x40d2e2
mov eax, dword [0x89edd4]
push 0x89d020
push eax
mov ecx, 0x5fc7dc
call fcn.00432f90
push eax
push 0x134
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x190]
push ecx
call fcn.0056aefc
add esp, 0x14
jmp 0x40d2e2
push 0
push 0x13d
push 0x8a3708
call fcn.0044ee40
push eax
push 0x135
jmp 0x40d608
xor eax, eax
mov byte [esp + 0x64], 0
mov ecx, 0x3f
lea edi, [esp + 0x65]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push str.Language.GetMessage_317___d
push eax
call fcn.0056aefc
add esp, 0xc
push 0
lea ecx, [esp + 0x68]
push ecx
push 0x136
push 0x8a3708
call fcn.0044ee40
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0
push 0
push 0x13e
jmp 0x40d6bc
push 0
push 0x13d
push 0x8a3708
call fcn.0044ee40
push eax
push 0x137
push 0x8a3708
call fcn.0044ee40
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0
push 0
push 0x13f
jmp 0x40d6bc
push 0
push 0x13d
push 0x8a3708
call fcn.0044ee40
push eax
push 0x138
jmp 0x40d608
push 0
push 0x13d
push 0x8a3708
call fcn.0044ee40
push eax
push 0x139
push 0x8a3708
call fcn.0044ee40
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
test bh, bh
jns 0x40d66e
and ebx, 0x7fff
push ebx
push 0x143
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
lea eax, [esp + 0x184]
push eax
push 0x144
push 0x8a3708
call fcn.0044ee40
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d6d4
push ebx
push 0x13a
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.0056aefc
add esp, 0xc
push 0
push 0x13d
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0
push 0
push 0x140
push 0x8a3708
call fcn.0044ee40
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x40d6e0
mov cl, byte [eax + 0x89d020]
mov byte [esp + eax + 0x6c0], cl
inc eax
test cl, cl
jne 0x40d6e0
lea edi, [esp + 0x6c0]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d700
mov eax, dword [str.gunbound.ex_]
mov ecx, dword [0x59d4d8]
mov edx, dword [0x59d4dc]
mov dword [edi], eax
mov al, byte [0x59d4e0]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
lea ecx, [esp + 0x580]
push ecx
lea edx, [esp + 0x6c4]
push edx
mov byte [edi + 0xc], al
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40d7bf
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x89d020]
mov byte [esp + eax + 0x180], cl
inc eax
test cl, cl
jne 0x40d750
lea edi, [esp + 0x180]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40d770
mov eax, dword [str.gunbound.exe]
mov ecx, dword [0x59d4c8]
mov edx, dword [0x59d4cc]
mov dword [edi], eax
mov al, byte [0x59d4d0]
mov dword [edi + 4], ecx
lea ecx, [esp + 0x180]
mov dword [edi + 8], edx
push ecx
mov byte [edi + 0xc], al
call fcn.0056cc76
add esp, 4
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 0x6c4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push str.____Program_End_n
call fcn.0044e9b0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xab0
ret 0x10
cmp esi, 0x7c
ja 0x40d977
je case.0x40d98f.141
lea eax, [esi - 0x6e]
cmp eax, 0xa
ja case.0x40d98f.143
movzx ecx, byte [eax + 0x40dda4]
jmp dword [ecx*4 + 0x40dd8c]
push 0x7531
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7531
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0056aefc
add esp, 0xc
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x188]
push edx
jmp 0x40dc5d
push 0x7532
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7532
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.0056aefc
add esp, 0xc
push 0
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x188]
jmp 0x40dc5c
push 0x7533
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7533
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x188]
push ecx
jmp 0x40dc5d
push 0x753b
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x753b
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0056aefc
add esp, 0xc
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x188]
push edx
jmp 0x40dc5d
lea eax, [esi - 0x8d]
cmp eax, 0xef
ja case.0x40d98f.143
movzx eax, byte [eax + 0x40ddd0]
jmp dword [eax*4 + 0x40ddb0]
push 0x7534
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7534
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x188]
push ecx
jmp 0x40dc5d
push 0x7535
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7535
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0056aefc
add esp, 0xc
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x188]
push edx
jmp 0x40dc5d
push 0x7536
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7536
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.0056aefc
add esp, 0xc
push 0
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x188]
jmp 0x40dc5c
push 0x7537
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7537
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x188]
push ecx
jmp 0x40dc5d
push 0x7538
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7538
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x188]
push eax
call fcn.0056aefc
add esp, 0xc
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x188]
push edx
jmp 0x40dc5d
push 0x7539
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x7539
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.0056aefc
add esp, 0xc
push 0
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x188]
jmp 0x40dc5c
push 0x753a
push 0x7530
push 0x8a3708
call fcn.0044ee40
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0056aefc
add esp, 0xc
and esi, 0x7fff
push esi
push 0x753a
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x188]
push ecx
jmp 0x40dc5d
and esi, 0x7fff
push esi
push 0x143
push 0x8a3708
call fcn.0044ee40
push eax
lea edx, [esp + 0x188]
push edx
call fcn.0056aefc
add esp, 0xc
push 0
lea eax, [esp + 0x184]
push eax
push 0x144
push 0x8a3708
call fcn.0044ee40
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xab0
ret 0x10