Function at 0x404c90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
sub esp, 0x298
lea ebp, [esp - 4]
mov eax, dword [0x43e030]
xor eax, ebp
mov dword [ebp + 0x298], eax
push 0xc
mov eax, 0x432673
call fcn.00421aad
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
call fcn.0040fd16
call fcn.004055b4
mov dword [esi + 8], eax
mov dword [ebp + 0x8c], 7
mov dword [ebp + 0x88], ebx
cmp eax, 1
jne 0x404ec3
xor eax, eax
mov word [ebp + 0x78], ax
lea edi, [ebp + 0x74]
mov ecx, 0x435b88
mov dword [ebp - 4], ebx
call fcn.00405d22
cmp dword [ebp + 0x8c], 8
mov eax, dword [ebp + 0x78]
jae 0x404d09
lea eax, [ebp + 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x404d20
call fcn.0040558a
jmp 0x404d23
xor eax, eax
inc eax
cmp eax, ebx
jne 0x404d3b
call fcn.004065a1
mov dword [eax + 0xc], 0x6a
push ebx
push 1
jmp 0x405342
call fcn.0040566a
mov dword [esi + 0xc], eax
call fcn.0040fc42
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x404e50
cmp dword [ebp - 0x10], ebx
jne 0x404e4c
call fcn.00405dd6
test eax, eax
jne 0x404d89
push reloc.KERNEL32.dll_LoadLibraryW
push 0x435350
push 0x435be0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004065a1
mov dword [eax + 0xc], 0x66
jmp 0x404d33
call fcn.004055a1
xor eax, eax
push 0x206
mov word [ebp + 0x90], ax
lea eax, [ebp + 0x92]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call fcn.0040fa22
xor ecx, ecx
mov dword [ebp + 0x70], 7
mov dword [ebp + 0x6c], ebx
mov word [ebp + 0x5c], cx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x404def
cmp word [eax], bx
je 0x404def
lea ecx, [ebp + 0x58]
call fcn.00405e78
push 0x435bfc
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
push 0x435c00
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
cmp dword [ebp + 0x70], 8
mov edi, dword [ebp + 0x5c]
jae 0x404e17
lea edi, [ebp + 0x5c]
lea esi, [ebp + 0x90]
call fcn.0040fc84
test eax, eax
je 0x404e30
call fcn.004065a1
mov dword [eax + 4], ebx
jmp 0x404e3c
call fcn.004065a1
mov dword [eax + 0xc], 0x6b
push ebx
push 1
lea esi, [ebp + 0x58]
call fcn.004064c2
jmp 0x404d33
cmp eax, ebx
je 0x404e58
call fcn.00408e37
mov dword [eax + 0x2c], ebx
call fcn.00408e37
mov ecx, eax
call fcn.00408e73
mov edi, eax
call fcn.00408e37
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x404e77
cmp eax, 4
jne 0x404e7e
mov dword [esi + 0x10], 1
cmp edi, ebx
jne 0x404eab
cmp dword [esi + 0xc], ebx
jne 0x404e9a
push reloc.KERNEL32.dll_LoadLibraryW
push 0x435350
push 0x435c14
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004065a1
mov dword [eax + 0xc], 0x64
jmp 0x404d33
cmp dword [esi + 0xc], ebx
je 0x404ebd
cmp dword [ebp - 0x10], ebx
jne 0x404ebd
call fcn.00408e37
mov dword [eax + 0x28], ebx
push ebx
jmp 0x40533b
cmp eax, 3
jne 0x4050ad
xor eax, eax
mov word [ebp + 0x78], ax
lea edi, [ebp + 0x74]
mov ecx, 0x435c40
mov dword [ebp - 4], 2
call fcn.00405d22
cmp dword [ebp + 0x8c], 8
mov eax, dword [ebp + 0x78]
jae 0x404ef5
lea eax, [ebp + 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x404f0c
call fcn.0040558a
jmp 0x404f0f
xor eax, eax
inc eax
cmp eax, ebx
jne 0x404f24
call fcn.004065a1
mov dword [eax + 0xc], 0xca
jmp 0x404d33
mov dword [esi + 0xc], 1
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ebx, [ebp - 0x18]
mov ecx, 0x435c98
mov esi, eax
call fcn.0040fb7a
xor esi, esi
test eax, eax
je 0x404f58
cmp dword [ebp - 0x18], esi
je 0x404f58
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 1
xor eax, eax
push 0x206
mov word [ebp + 0x90], ax
lea eax, [ebp + 0x92]
push esi
push eax
call fcn.00421bc0
add esp, 0xc
lea ebx, [ebp + 0x90]
call fcn.00405c91
cmp eax, esi
jne 0x404f97
call fcn.004065a1
mov dword [eax + 0xc], 0xc9
push esi
jmp 0x404d34
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.00408e37
mov dword [eax + 0x28], esi
call fcn.00408e37
mov dword [eax + 0x24], esi
call fcn.00408e37
mov ecx, eax
call fcn.00408e73
test eax, eax
jne 0x404fda
push dword [ebp - 0x10]
call fcn.00405bcb
call fcn.004065a1
mov dword [eax + 0xc], 0xc8
jmp 0x404f91
call fcn.00408e37
lea ecx, [ebp + 0x90]
mov edi, eax
call fcn.0040a70c
call fcn.00408e37
xor ebx, ebx
cmp dword [eax + 0x28], ebx
je 0x405009
call fcn.0040fc42
test eax, eax
jne 0x405009
call fcn.00408e37
mov dword [eax + 0x28], ebx
mov esi, dword [ebp - 0x10]
xor eax, eax
cmp dword [esi + 0x14], ebx
sete al
mov edi, eax
call fcn.00408e37
mov dword [eax + 0x2c], edi
xor eax, eax
cmp dword [esi + 0x14], ebx
sete al
mov esi, eax
call fcn.00408e37
mov dword [eax + 0x30], esi
xor eax, eax
mov dword [ebp + 0x70], 7
mov dword [ebp + 0x6c], ebx
mov word [ebp + 0x5c], ax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
je 0x405096
push 0x435e78
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x405096
add eax, 0x10
call fcn.0040fa22
cmp eax, ebx
je 0x405096
cmp word [eax], bx
je 0x405096
lea ecx, [ebp + 0x58]
call fcn.00405e78
cmp dword [ebp + 0x70], 8
mov esi, dword [ebp + 0x5c]
jae 0x405083
lea esi, [ebp + 0x5c]
call fcn.00408e37
cmp esi, ebx
je 0x405096
lea ecx, [eax + 0x70]
mov eax, esi
call fcn.00405e78
xor edi, edi
inc edi
mov dword [ebp - 0x14], edi
push ebx
push edi
lea esi, [ebp + 0x58]
call fcn.004064c2
push ebx
push edi
jmp 0x405342
xor eax, eax
mov word [ebp + 0x78], ax
lea edi, [ebp + 0x74]
mov ecx, 0x435cb0
mov dword [ebp - 4], 4
call fcn.00405d22
cmp dword [ebp + 0x8c], 8
mov eax, dword [ebp + 0x78]
jae 0x4050d6
lea eax, [ebp + 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x4050ed
call fcn.0040558a
jmp 0x4050f0
xor eax, eax
inc eax
cmp eax, ebx
jne 0x405105
call fcn.004065a1
mov dword [eax + 0xc], 0x130
jmp 0x404d33
call fcn.0040fc42
test eax, eax
jne 0x4052af
call fcn.00405dd6
test eax, eax
jne 0x40513f
push reloc.KERNEL32.dll_LoadLibraryW
push 0x43527c
push 0x435be0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004065a1
mov dword [eax + 0xc], 0x12d
jmp 0x404d33
call fcn.004055a1
xor eax, eax
push 0x206
mov word [ebp + 0x90], ax
lea eax, [ebp + 0x92]
push ebx
push eax
call fcn.00421bc0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call fcn.0040fa22
push 7
pop edi
xor ecx, ecx
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x6c], ebx
mov word [ebp + 0x5c], cx
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4051a4
cmp word [eax], bx
je 0x4051a4
lea ecx, [ebp + 0x58]
call fcn.00405e78
mov esi, 0x435bfc
push esi
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
push 0x435c00
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
xor eax, eax
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x50], ebx
mov word [ebp + 0x40], ax
push 0x405370
push 0x406465
push 1
push 0x3c
lea eax, [ebp]
push eax
mov byte [ebp - 4], 6
call fcn.0041f838
lea eax, [ebp]
push eax
mov byte [ebp - 4], 7
call fcn.00410c6b
pop ecx
test eax, eax
je 0x405210
cmp dword [ebp + 0x1c], 8
mov edx, dword [ebp + 8]
jae 0x405206
lea edx, [ebp + 8]
lea eax, [ebp + 0x3c]
push eax
call fcn.004105fa
pop ecx
push esi
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
push 0x435d08
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
mov esi, 0x435d18
push esi
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x405243
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
push esi
lea eax, [ebp + 0x58]
push eax
call fcn.00405e4f
cmp dword [ebp + 0x70], 8
mov edi, dword [ebp + 0x5c]
jae 0x405263
lea edi, [ebp + 0x5c]
lea esi, [ebp + 0x90]
call fcn.0040fc84
test eax, eax
je 0x40527c
call fcn.004065a1
mov dword [eax + 4], ebx
jmp 0x405288
call fcn.004065a1
mov dword [eax + 0xc], 0x131
push 0x405370
xor edi, edi
inc edi
push edi
push 0x3c
lea eax, [ebp]
push eax
mov byte [ebp - 4], 6
call fcn.0041f8fb
push ebx
push edi
lea esi, [ebp + 0x3c]
call fcn.004064c2
jmp 0x40509c
call fcn.00405851
test eax, eax
jne 0x4052f7
call fcn.004055a1
call fcn.00405928
test eax, eax
jne 0x4052ea
push reloc.KERNEL32.dll_LoadLibraryW
push 0x43527c
push 0x435d1c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004065a1
mov dword [eax + 0xc], 0x12e
jmp 0x404d33
call fcn.004065a1
mov dword [eax + 4], ebx
jmp 0x404d33
call fcn.004065a1
mov ecx, eax
call fcn.00406c37
call fcn.0040d009
mov ebx, eax
call fcn.0040d02f
test eax, eax
jne 0x405339
push reloc.KERNEL32.dll_LoadLibraryW
push 0x43527c
push 0x435d1c
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004065a1
mov dword [eax + 0xc], 0x12c
push 0
jmp 0x404d34
push 0
xor eax, eax
inc eax
push eax
mov dword [ebp - 0x14], eax
lea esi, [ebp + 0x74]
call fcn.004064c2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x298]
xor ecx, ebp
call fcn.0041f23c
add ebp, 0x29c
leave
ret