Function at 0x10390a0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
cmp dword [0x107f520], 3
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa10], edi
mov dword [ebp - 0xa0c], esi
mov dword [ebp - 0xa08], esi
jne 0x10391bb
xor eax, eax
xor ebx, ebx
inc ebx
cmp dword [0x10813e0], esi
push ebx
sete al
mov dword [ebp - 0xa10], esi
push eax
lea eax, [ebp - 0xa10]
push eax
call fcn.01035c82
cmp eax, esi
mov dword [ebp - 0xa0c], eax
jle 0x1039626
push 0x1003db8
push 2
call fcn.0105e573
cmp edi, esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x1039159
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x11c
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x103915f
lea eax, [ebp - 0x804]
push eax
push 0x44d
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 0xa08], ebx
push 0x44e
push edi
call esi
mov edi, dword [ebp - 0xa10]
mov ebx, eax
test ebx, ebx
je 0x103918f
xor esi, esi
push dword [edi + esi*4]
push 0
push 0x180
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, dword [ebp - 0xa0c]
jl 0x1039175
xor esi, esi
cmp dword [edi + esi*4], 0
je 0x10391a4
push dword [edi + esi*4]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [edi + esi*4], 0
pop ecx
inc esi
cmp esi, dword [ebp - 0xa0c]
jl 0x1039191
test edi, edi
je 0x1039626
push edi
jmp 0x1039620
cmp dword [0x107f528], 0x107f3c0
jne 0x103931f
mov ecx, dword [0x10813fc]
test ecx, ecx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x400
je 0x10392af
call fcn.01045d87
test eax, eax
je 0x10392af
mov ecx, dword [0x10813fc]
call fcn.01045d87
mov ecx, eax
call fcn.010485a8
test eax, eax
je 0x10392af
call fcn.01032dd3
test eax, eax
je 0x10392af
push 0x1003d80
push 2
call fcn.0105e573
cmp dword [ebp - 0xa10], 0
je 0x10392a5
push esi
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10392af
cmp dword [0x10813d0], 0
je 0x103928e
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0xa0c], eax
je 0x10392a5
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01034c79
test eax, eax
jge 0x10392a5
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x10392a5
lea eax, [ebp - 0x804]
push eax
push 0x3ee
push dword [ebp - 0xa10]
call edi
push eax
call ebx
mov dword [ebp - 0xa08], 1
push 0x32
call fcn.010340ee
test eax, eax
jne 0x1039626
push 0x1003d44
push 2
call fcn.0105e573
cmp dword [ebp - 0xa10], 0
jne 0x10392de
inc dword [ebp - 0xa08]
jmp 0x1039626
push esi
lea eax, [ebp - 0x804]
push eax
push 0x14d
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039626
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0xa08]
add eax, 0x3ee
push eax
push dword [ebp - 0xa10]
call edi
push eax
call ebx
jmp 0x10392d3
call fcn.01032dd3
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x400
jne 0x1039346
call fcn.01036247
test eax, eax
je 0x10393de
push 0x1003d80
push 2
call fcn.0105e573
cmp dword [ebp - 0xa10], 0
je 0x10393d4
push esi
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10393de
cmp dword [0x10813d0], 0
je 0x10393bd
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0xa0c], eax
je 0x10393d4
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01034c79
test eax, eax
jge 0x10393d4
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [ebp - 0xa0c], 0
pop ecx
jmp 0x10393d4
lea eax, [ebp - 0x804]
push eax
push 0x3ee
push dword [ebp - 0xa10]
call edi
push eax
call ebx
mov dword [ebp - 0xa08], 1
push 0
push 0xa28
push 0
push 5
call fcn.0105989e
test eax, eax
je 0x10394bd
call fcn.01036154
test eax, eax
je 0x103951c
push 0x1003d18
push 2
call fcn.0105e573
cmp dword [ebp - 0xa10], 0
je 0x1039516
push esi
lea eax, [ebp - 0x804]
push eax
push 0xa3
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x103951c
cmp dword [0x10813d0], 0
je 0x10394f8
cmp dword [ebp - 0xa0c], 0
jne 0x103947c
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0xa0c], eax
je 0x1039516
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01034c79
jmp 0x10394a4
push 0x1003d10
push esi
push dword [ebp - 0xa0c]
call fcn.01034cee
test eax, eax
jl 0x10394a8
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp - 0xa0c]
call fcn.01034cee
test eax, eax
jge 0x1039516
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [ebp - 0xa0c], 0
pop ecx
jmp 0x1039516
call fcn.010575fe
test eax, eax
je 0x103951c
push 0x1003cd8
push 2
call fcn.0105e573
cmp dword [ebp - 0xa10], 0
je 0x1039516
push esi
lea eax, [ebp - 0x804]
push eax
push 0x97
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x103951c
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0xa08]
add eax, 0x3ee
push eax
push dword [ebp - 0xa10]
call edi
push eax
call ebx
inc dword [ebp - 0xa08]
call fcn.01059a2a
test eax, eax
je 0x1039597
cmp dword [ebp - 0xa08], 3
jge 0x1039597
mov eax, dword [0x107f528]
cmp eax, 0x107f200
je 0x1039597
cmp eax, 0x107f3c0
jne 0x1039597
push 0x1003cb4
push 2
call fcn.0105e573
cmp dword [ebp - 0xa10], 0
je 0x1039591
push esi
lea eax, [ebp - 0x804]
push eax
push 0x98
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039597
lea eax, [ebp - 0x804]
push eax
mov eax, dword [ebp - 0xa08]
add eax, 0x3ee
push eax
push dword [ebp - 0xa10]
call edi
push eax
call ebx
inc dword [ebp - 0xa08]
cmp dword [0x10813d0], 0
je 0x1039611
cmp dword [ebp - 0xa0c], 0
je 0x1039626
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x1039611
push 0x1003c84
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1039611
push 0x100
lea eax, [ebp - 0xa04]
push eax
push 0xad
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039611
mov al, byte [0x1082a9a]
neg al
sbb eax, eax
and eax, 0x180000
or eax, 0x10
push eax
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa0c]
push dword [ebp - 0xa10]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0xa0c], 0
je 0x1039626
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa08]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4