Function at 0x10397af
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 0x10398ca
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.010362ff
cmp eax, esi
mov dword [ebp - 0xa0c], eax
jle 0x1039d37
push 0x1003a88
push 2
call fcn.01055c50
cmp edi, esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x1039868
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x11c
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x103986e
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 0x103989e
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 0x1039884
xor esi, esi
cmp dword [edi + esi*4], 0
je 0x10398b3
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 0x10398a0
test edi, edi
je 0x1039d37
push edi
jmp 0x1039d31
cmp dword [0x107255c], 0x1072428
jne 0x1039a2e
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 0x10399be
call fcn.010458e6
test eax, eax
je 0x10399be
mov ecx, dword [0x10739c8]
call fcn.010458e6
mov ecx, eax
call fcn.010480dc
test eax, eax
je 0x10399be
call fcn.0103400a
test eax, eax
je 0x10399be
push 0x1003a50
push 2
call fcn.01055c50
cmp dword [ebp - 0xa10], 0
je 0x10399b4
push esi
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10399be
cmp dword [0x107399c], 0
je 0x103999d
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xa0c], eax
test eax, eax
je 0x10399b4
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01035831
test eax, eax
jge 0x10399b4
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x10399b4
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.01034ef1
test eax, eax
jne 0x1039d37
push 0x1003a14
push 2
call fcn.01055c50
cmp dword [ebp - 0xa10], 0
jne 0x10399ed
inc dword [ebp - 0xa08]
jmp 0x1039d37
push esi
lea eax, [ebp - 0x804]
push eax
push 0x14d
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039d37
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 0x10399e2
call fcn.0103400a
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x400
test eax, eax
jne 0x1039a55
call fcn.010368c4
test eax, eax
je 0x1039aed
push 0x1003a50
push 2
call fcn.01055c50
cmp dword [ebp - 0xa10], 0
je 0x1039ae3
push esi
lea eax, [ebp - 0x804]
push eax
push 0x96
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039aed
cmp dword [0x107399c], 0
je 0x1039acc
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xa0c], eax
test eax, eax
je 0x1039ae3
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01035831
test eax, eax
jge 0x1039ae3
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [ebp - 0xa0c], 0
pop ecx
jmp 0x1039ae3
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.01058973
test eax, eax
je 0x1039bcc
call fcn.010367d1
test eax, eax
je 0x1039c2b
push 0x10039e8
push 2
call fcn.01055c50
cmp dword [ebp - 0xa10], 0
je 0x1039c25
push esi
lea eax, [ebp - 0x804]
push eax
push 0xa3
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039c2b
cmp dword [0x107399c], 0
je 0x1039c07
cmp dword [ebp - 0xa0c], 0
jne 0x1039b8b
push 0x800
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0xa0c], eax
test eax, eax
je 0x1039c25
lea ecx, [ebp - 0x804]
push ecx
push esi
push eax
call fcn.01035831
jmp 0x1039bb3
push 0x10039e0
push esi
push dword [ebp - 0xa0c]
call fcn.010358a6
test eax, eax
jl 0x1039bb7
lea eax, [ebp - 0x804]
push eax
push esi
push dword [ebp - 0xa0c]
call fcn.010358a6
test eax, eax
jge 0x1039c25
push dword [ebp - 0xa0c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [ebp - 0xa0c], 0
pop ecx
jmp 0x1039c25
call fcn.010567c9
test eax, eax
je 0x1039c2b
push 0x10039a8
push 2
call fcn.01055c50
cmp dword [ebp - 0xa10], 0
je 0x1039c25
push esi
lea eax, [ebp - 0x804]
push eax
push 0x97
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039c2b
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.0105665c
test eax, eax
je 0x1039ca6
cmp dword [ebp - 0xa08], 3
jge 0x1039ca6
mov eax, dword [0x107255c]
cmp eax, 0x1072270
je 0x1039ca6
cmp eax, 0x1072428
jne 0x1039ca6
push 0x1003984
push 2
call fcn.01055c50
cmp dword [ebp - 0xa10], 0
je 0x1039ca0
push esi
lea eax, [ebp - 0x804]
push eax
push 0x98
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039ca6
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 0x1039d22
cmp dword [ebp - 0xa0c], 0
je 0x1039d37
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x1039d22
push 0x1003954
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x1039d22
push 0x100
lea eax, [ebp - 0xa04]
push eax
push 0xad
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1039d22
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 0x1039d37
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.01047480
leave
ret 4