Function at 0x1039790
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
cmp dword [0x1072134], 3
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa10], edi
mov dword [ebp - 0xa0c], esi
mov dword [ebp - 0xa08], esi
jne 0x10398ab
xor eax, eax
xor ebx, ebx
inc ebx
cmp dword [0x10739ac], esi
push ebx
sete al
mov dword [ebp - 0xa10], esi
push eax
lea eax, [ebp - 0xa10]
push eax
call fcn.010362df
cmp eax, esi
mov dword [ebp - 0xa0c], eax
jle 0x1039d18
push 0x1003a88
push 2
call fcn.01055c2f
cmp edi, esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x1039849
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x11c
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x103984f
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 0x103987f
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 0x1039865
xor esi, esi
cmp dword [edi + esi*4], 0
je 0x1039894
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 0x1039881
test edi, edi
je 0x1039d18
push edi
jmp 0x1039d12
cmp dword [0x107255c], 0x1072428
jne 0x1039a0f
mov ecx, dword [0x10739c8]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x400
test ecx, ecx
je 0x103999f
call fcn.010458c9
test eax, eax
je 0x103999f
mov ecx, dword [0x10739c8]
call fcn.010458c9
mov ecx, eax
call fcn.010480bc
test eax, eax
je 0x103999f
call fcn.01033fea
test eax, eax
je 0x103999f
push 0x1003a50
push 2
call fcn.01055c2f
cmp dword [ebp - 0xa10], 0
je 0x1039995
push esi
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x103999f
cmp dword [0x107399c], 0
je 0x103997e
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xa0c], eax
test eax, eax
je 0x1039995
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01035811
test eax, eax
jge 0x1039995
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x1039995
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.01034ed1
test eax, eax
jne 0x1039d18
push 0x1003a14
push 2
call fcn.01055c2f
cmp dword [ebp - 0xa10], 0
jne 0x10399ce
inc dword [ebp - 0xa08]
jmp 0x1039d18
push esi
lea eax, [ebp - 0x804]
push eax
push 0x14d
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039d18
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 0x10399c3
call fcn.01033fea
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x400
test eax, eax
jne 0x1039a36
call fcn.010368a4
test eax, eax
je 0x1039ace
push 0x1003a50
push 2
call fcn.01055c2f
cmp dword [ebp - 0xa10], 0
je 0x1039ac4
push esi
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039ace
cmp dword [0x107399c], 0
je 0x1039aad
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xa0c], eax
test eax, eax
je 0x1039ac4
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01035811
test eax, eax
jge 0x1039ac4
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [ebp - 0xa0c], 0
pop ecx
jmp 0x1039ac4
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.01058952
test eax, eax
je 0x1039bad
call fcn.010367b1
test eax, eax
je 0x1039c0c
push 0x10039e8
push 2
call fcn.01055c2f
cmp dword [ebp - 0xa10], 0
je 0x1039c06
push esi
lea eax, [ebp - 0x804]
push eax
push 0xa3
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039c0c
cmp dword [0x107399c], 0
je 0x1039be8
cmp dword [ebp - 0xa0c], 0
jne 0x1039b6c
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xa0c], eax
test eax, eax
je 0x1039c06
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01035811
jmp 0x1039b94
push 0x10039e0
push esi
push dword [ebp - 0xa0c]
call fcn.01035886
test eax, eax
jl 0x1039b98
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp - 0xa0c]
call fcn.01035886
test eax, eax
jge 0x1039c06
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [ebp - 0xa0c], 0
pop ecx
jmp 0x1039c06
call fcn.010567a8
test eax, eax
je 0x1039c0c
push 0x10039a8
push 2
call fcn.01055c2f
cmp dword [ebp - 0xa10], 0
je 0x1039c06
push esi
lea eax, [ebp - 0x804]
push eax
push 0x97
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039c0c
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.0105663b
test eax, eax
je 0x1039c87
cmp dword [ebp - 0xa08], 3
jge 0x1039c87
mov eax, dword [0x107255c]
cmp eax, 0x1072270
je 0x1039c87
cmp eax, 0x1072428
jne 0x1039c87
push 0x1003984
push 2
call fcn.01055c2f
cmp dword [ebp - 0xa10], 0
je 0x1039c81
push esi
lea eax, [ebp - 0x804]
push eax
push 0x98
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039c87
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 [0x107399c], 0
je 0x1039d03
cmp dword [ebp - 0xa0c], 0
je 0x1039d18
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x1039d03
push 0x1003954
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1039d03
push 0x100
lea eax, [ebp - 0xa04]
push eax
push 0xad
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039d03
movzx eax, byte [0x1074c46]
neg eax
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 0x1039d18
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.01047464
leave
ret 4