Function at 0x10127c4
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0c
mov eax, dword [0x1048628]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x5a
xor edi, edi
push 4
mov dword [ebp - 0xa0c], eax
mov dword [ebp - 0xa08], edi
call fcn.010259af
test eax, eax
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x400
je 0x1012859
call fcn.01011ca8
test eax, eax
jne 0x1012859
cmp dword [ebp - 0xa0c], eax
je 0x1012856
push ebx
lea eax, [ebp - 0x804]
push eax
push 0xa2
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x1012859
push 0x10021b8
push 2
call fcn.0102ae4b
lea eax, [ebp - 0x804]
push eax
push 0x3ee
push dword [ebp - 0xa0c]
call esi
push eax
call fcn.0101c98f
xor edi, edi
inc edi
call fcn.0100f0f7
test eax, eax
jne 0x101286f
call fcn.01011e13
test eax, eax
je 0x10128f6
cmp dword [ebp - 0xa0c], 0
je 0x10128f5
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x10128f6
cmp dword [0x1048bd4], 0
je 0x10128d9
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0xa08], eax
je 0x10128f5
lea ecx, [ebp - 0x804]
push ecx
push ebx
push eax
call fcn.0100edc7
test eax, eax
jge 0x10128f5
push dword [ebp - 0xa08]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 0xa08], 0
pop ecx
jmp 0x10128f5
lea eax, [ebp - 0x804]
push eax
lea eax, [edi + 0x3ee]
push eax
push dword [ebp - 0xa0c]
call esi
push eax
call fcn.0101c98f
inc edi
push 0
push 0xa28
push 0
push 5
call fcn.01028147
test eax, eax
je 0x10129cc
call fcn.01011d27
test eax, eax
je 0x1012a17
cmp dword [ebp - 0xa0c], 0
je 0x1012a16
push ebx
lea eax, [ebp - 0x804]
push eax
push 0xa3
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x1012a17
cmp dword [0x1048bd4], 0
je 0x10129fa
cmp dword [ebp - 0xa08], 0
jne 0x10129a2
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0xa08], eax
je 0x1012a16
lea ecx, [ebp - 0x804]
push ecx
push ebx
push eax
call fcn.0100edc7
test eax, eax
jge 0x1012a16
push dword [ebp - 0xa08]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 0xa08], 0
pop ecx
jmp 0x1012a16
push 0x10021b0
push ebx
push dword [ebp - 0xa08]
call fcn.0100f5a7
test eax, eax
jl 0x101298d
lea eax, [ebp - 0x804]
push eax
push ebx
push dword [ebp - 0xa08]
call fcn.0100f5a7
jmp 0x1012985
call fcn.01028442
test eax, eax
je 0x1012a17
cmp dword [ebp - 0xa0c], 0
je 0x1012a16
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x97
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x1012a17
lea eax, [ebp - 0x804]
push eax
lea eax, [edi + 0x3ee]
push eax
push dword [ebp - 0xa0c]
call esi
push eax
call fcn.0101c98f
inc edi
call fcn.010282cb
test eax, eax
je 0x1012a67
cmp edi, 3
jge 0x1012a67
cmp dword [ebp - 0xa0c], 0
je 0x1012a66
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x98
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x1012a67
lea eax, [ebp - 0x804]
push eax
lea eax, [edi + 0x3ee]
push eax
push dword [ebp - 0xa0c]
call esi
push eax
call fcn.0101c98f
inc edi
cmp dword [0x1048bd4], 0
je 0x1012adf
cmp dword [ebp - 0xa08], 0
je 0x1012af4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x1012adf
push 0x1002180
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1012adf
push 0x100
lea eax, [ebp - 0xa04]
push eax
push 0xad
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x1012adf
mov al, byte [0x104acc2]
neg al
sbb eax, eax
and eax, 0x180000
or eax, 0x10
push eax
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa08]
push dword [ebp - 0xa0c]
call fcn.0101b8b5
cmp dword [ebp - 0xa08], 0
je 0x1012af4
push dword [ebp - 0xa08]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01018732
leave
ret 4