Function at 0x405982
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x43016c
call fcn.0042f6e0
sub esp, 0x78
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x44], esi
xor ebx, ebx
push 0xc087ffff
push 0x7c97ffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.004117d2
add byte [0x43bbd0], al
mov dword [ebp - 0x40], ebx
movsx eax, byte [0x43bbcd]
push eax
mov byte [ebp - 4], 1
movsx eax, word [0x43bbd2]
push eax
call fcn.00411762
add dword [0x43bc0c], eax
movsx eax, word [0x43bbd4]
push eax
push 0x10e7ffff
call fcn.004116de
add word [0x43bbde], ax
mov edi, dword [ebp + 8]
movsx eax, byte [0x43bbce]
add eax, dword [0x43bbf8]
add esp, 0x18
lea ecx, [ebp - 0x40]
mov dword [0x43bc04], eax
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x24]
push 0x7247ffff
push 0x219dffff
mov dword [ebp - 0x64], eax
call fcn.004118a0
add word [0x43bbd6], ax
mov al, byte [0x43bc00]
dec al
cmp dword [ebp - 0x64], ebx
pop ecx
mov byte [0x43bbd0], al
mov eax, dword [ebp - 0x40]
pop ecx
mov word [0x43bbdc], 1
jl 0x406316
cmp eax, ebx
je 0x406316
mov eax, dword [esi + 0x1c]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x94]
test eax, eax
jl 0x405aca
cmp dword [ebp - 0x28], ebx
je 0x405aca
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x68]
sub eax, dword [ebp - 0x74]
sub esi, dword [ebp - 0x70]
push eax
call fcn.0040592d
push esi
mov dword [ebp - 0x60], eax
call fcn.0040592d
pop ecx
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
pop ecx
mov dword [ebp - 0x64], eax
push 0x10200
push ebx
push 0x20
push dword [ebp - 0x28]
call esi
movzx eax, word [ebp - 0x64]
movzx ecx, word [ebp - 0x60]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x200
push dword [ebp - 0x28]
call esi
mov esi, dword [ebp - 0x44]
push 0x9205ffff
push 0x7111ffff
call fcn.00411856
add byte [0x43bbce], al
push 0x756bffff
movsx eax, word [0x43bbde]
push eax
call fcn.004118a0
add byte [0x43bbca], al
movsx eax, byte [0x43bbcd]
push eax
push dword [0x43bc0c]
call fcn.004117aa
mov dword [0x43bbf8], eax
mov dword [ebp - 0x54], ebx
or word [0x43bbde], 0xffff
push 0xf829ffff
push 0x85ebffff
mov byte [ebp - 4], 2
call fcn.00411820
add byte [0x43bbce], al
add esp, 0x20
mov dword [ebp - 0x50], ebx
cmp dword [esi + 0x4c], ebx
mov byte [ebp - 4], 3
jbe 0x405bb9
cmp edi, ebx
mov dword [ebp - 0x24], ebx
je 0x405b57
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0x43b128
push edi
call dword [eax]
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 4], 4
je 0x405ba1
lea ecx, [ebp - 0x6c]
call fcn.00427a50
mov esi, dword [esi + 0x48]
mov byte [ebp - 4], 5
cmp esi, ebx
jne 0x405b79
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
lea ecx, [ebp - 0x6c]
call fcn.00406342
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x50]
push edx
push dword [ebp - 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb8]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.00427ab7
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x405bb2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x405bbc
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x174]
push dword [0x43bbf0]
push dword [0x43bc08]
call fcn.004116de
add dword [0x43bbe8], eax
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x54]
call fcn.0040846b
movsx eax, byte [0x43bbca]
push eax
push 0x7b81ffff
call fcn.004116de
mov word [0x43bbe4], ax
movsx eax, ax
push eax
movsx eax, byte [0x43bbc8]
push eax
call fcn.004116ab
add byte [0x43bbcb], al
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
movsx eax, word [0x43bbe2]
push eax
mov word [0x43bbd2], 1
movsx eax, byte [0x43bbd1]
push eax
call fcn.004118a0
add byte [0x43bbca], al
mov al, byte [0x43bc08]
inc al
mov dword [ebp - 0x10], ebx
mov byte [0x43bbc9], al
movsx eax, byte [0x43bbca]
push eax
push 0x97e9ffff
call fcn.004118e8
add word [0x43bbde], ax
push 0xed79ffff
movsx eax, word [0x43bbdc]
push eax
call fcn.004118e8
mov word [0x43bbe2], ax
mov dword [ebp - 0x3c], ebx
movsx eax, word [0x43bbd2]
push eax
mov byte [ebp - 4], 6
movsx eax, word [0x43bbd4]
push eax
call fcn.0041172e
push dword [0x43bbfc]
mov word [0x43bbe2], ax
movsx eax, byte [0x43bbc8]
push eax
mov word [0x43bbdc], 1
call fcn.00411856
push 0xffffffffffffffff
push 0x43b138
mov dword [0x43bc04], eax
mov word [ebp - 0x74], 8
call fcn.004058ee
push dword [0x43bbfc]
mov dword [ebp - 0x6c], eax
movsx eax, word [0x43bbdc]
push eax
call fcn.00411820
mov byte [0x43bbc8], al
mov eax, dword [ebp - 0x54]
add esp, 0x38
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
sub esp, 0x10
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
push dword [ebp - 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, byte [0x43bbd2]
push eax
call dword [sym.imp.USER32.dll_IsCharUpperA]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x3c]
mov byte [0x43bbc9], al
mov byte [0x43bbd0], 1
call fcn.0040846b
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetVersion]
add byte [0x43bbcf], al
push dword [0x43bbf4]
movsx eax, word [0x43bbe0]
push eax
call fcn.004117d2
mov byte [0x43bbc8], al
mov dword [ebp - 0x10], ebx
movsx eax, word [0x43bbe0]
push eax
push 0x955bffff
call fcn.004117d2
add esp, 0x10
cmp dword [ebp - 0x3c], ebx
mov dword [0x43bbec], eax
mov word [0x43bbd6], ax
mov byte [0x43bbc9], 1
je 0x4062c0
movsx eax, word [0x43bbdc]
push eax
push 0x20e1ffff
call fcn.004116de
movsx ecx, byte [0x43bbce]
mov dword [0x43bbf4], eax
or eax, 0xffffffff
sub eax, dword [0x43bc0c]
or word [0x43bbd2], 0xffff
mov word [0x43bbe2], bx
mov dword [ebp - 0x1c], ebx
mov word [0x43bbe4], ax
movsx eax, byte [0x43bbd1]
or eax, ecx
mov dword [0x43bc00], eax
push dword [0x43bbf8]
mov byte [ebp - 4], 7
push 0x3adffff
call fcn.00411856
push 0xb34bffff
push 0x1db5ffff
mov byte [0x43bbc8], al
call fcn.004116de
mov dword [0x43bbe8], eax
mov word [ebp - 0x74], 3
movsx eax, word [0x43bbe0]
push eax
push 0x1485ffff
call fcn.004116ab
push 0xcb3dffff
mov dword [0x43bbec], eax
push dword [0x43bc00]
call fcn.004117aa
push dword [0x43bbec]
inc dword [0x43bc0c]
mov dword [0x43bc08], eax
mov eax, dword [ebp + 0xc]
push 0xd46bffff
mov dword [ebp - 0x6c], eax
mov word [0x43bbde], 1
call fcn.00411820
add esp, 0x30
lea edx, [ebp - 0x10]
lea esi, [ebp - 0x74]
mov byte [0x43bbcd], al
push edx
mov eax, dword [ebp - 0x3c]
sub esp, 0x10
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x2c]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00408321
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
add word [0x43bbe0], ax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [0x43bc0c]
push 0xf091ffff
push dword [0x43bc08]
dec al
mov byte [0x43bbd1], al
mov byte [0x43bbcc], 1
call fcn.004118e8
add byte [0x43bbd0], al
movsx eax, word [0x43bbd6]
push 0xd119ffff
push eax
mov dword [ebp - 0x10], ebx
mov dword [0x43bbfc], 0x1001ffff
call fcn.00411762
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
mov word [0x43bbd8], ax
je 0x4062af
movsx eax, byte [0x43bbca]
push eax
push 0xa635ffff
call fcn.004116ab
mov byte [0x43bbcb], al
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x4c], ebx
je 0x405f4e
mov ecx, dword [eax]
lea edx, [ebp - 0x4c]
push edx
push 0x43b170
push eax
call dword [ecx]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00427a50
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x405fc2
mov ecx, dword [eax]
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0x20]
lea ecx, [ebp - 0x6c]
call fcn.00427fbb
mov esi, eax
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x84], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x84]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.00428133
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push edx
mov eax, dword [eax + 0x20]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x406211
cmp dword [ebp - 0x30], ebx
je 0x406211
test byte [0x43b8b4], 1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x406007
or byte [0x43b8b4], 1
push ebx
call esi
mov dword [0x43b8b8], eax
test byte [0x43b8b4], 2
jne 0x406020
or byte [0x43b8b4], 2
push 1
call esi
mov dword [0x43b8dc], eax
mov eax, 0xf0
cmp dword [0x43b8b8], eax
jge 0x406032
mov dword [0x43b8b8], eax
cmp dword [0x43b8dc], eax
jge 0x40603f
mov dword [0x43b8dc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
cmp eax, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x14], eax
je 0x406061
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x58]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd8]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xdc]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push edx
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x18], edi
call dword [ecx + 0xe0]
test eax, eax
jl 0x40611d
push dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.00408096
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40611d
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0xd0]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xd4]
add esi, dword [ebp - 0x20]
add edi, dword [ebp - 0x24]
jmp 0x4060cb
mov eax, dword [ebp - 0x58]
cmp eax, ebx
mov dword [ebp - 0x5c], eax
jne 0x40612e
mov dword [ebp - 0x5c], 0xa
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
cdq
idiv dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp eax, ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x20], edx
jne 0x40614e
mov dword [ebp - 0x5c], 0xa
call edi
cdq
idiv dword [ebp - 0x5c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], ebx
add dword [ebp - 0x38], eax
add esi, eax
mov dword [ebp - 0x5c], ebx
lea eax, [esi + 0xc8]
add dword [ebp - 0x18], edx
add dword [ebp - 0x34], edx
cmp eax, dword [0x43b8b8]
mov dword [ebp - 0x24], edx
jle 0x406191
call edi
mov ecx, dword [0x43b8b8]
cdq
add ecx, 0xffffff38
idiv ecx
sub esi, edx
mov dword [ebp - 0x64], esi
mov esi, edx
mov eax, dword [ebp - 0x18]
add eax, 0xc8
cmp eax, dword [0x43b8dc]
jle 0x4061bd
call edi
mov ecx, dword [0x43b8dc]
cdq
add ecx, 0xffffff38
idiv ecx
mov eax, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x5c], eax
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x10200
push ebx
push 0x20
push dword [ebp - 0x30]
call edi
movzx eax, word [ebp - 0x18]
movzx ecx, si
shl eax, 0x10
or eax, ecx
push eax
push ebx
push 0x200
push dword [ebp - 0x30]
call edi
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x18]
push esi
call fcn.0041f0bb
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, ebx
mov byte [ebp - 4], 9
je 0x406211
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x48], ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.004084f2
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x406233
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
cmp byte [ebp + 0x10], bl
je 0x406257
mov esi, dword [ebp - 0x44]
mov eax, dword [esi + 0x24]
cmp eax, 1
je 0x406248
cmp eax, 2
jne 0x406254
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x114]
mov dword [esi + 0x24], ebx
mov eax, dword [0x43bbf4]
add eax, 0xfbb40001
mov dword [0x43bbec], eax
movsx eax, byte [0x43bbcc]
push eax
push dword [0x43bc00]
call fcn.00411762
add dword [0x43bbfc], eax
mov eax, dword [ebp - 0x48]
pop ecx
cmp eax, ebx
pop ecx
mov byte [ebp - 4], 9
je 0x406292
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00427ab7
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4062af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4062c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4062d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4062e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4062f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x406303
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x406331
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406331
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x406323
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x406331
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc