Function at 0x55d950
Capabilities:
Accept command line arguments
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x5f3008]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [esp + 0x20], ebx
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x3e8
push ebx
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0x4fc5a0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], str.OYAZIVIEWER
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x55dd2e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
xor ecx, ecx
xor eax, eax
mov word [esp + 0x80], ax
movzx eax, word [edx]
cmp eax, 0x22
je 0x55da9a
cmp eax, 0x20
je 0x55dac6
lea edi, [esp + 0x80]
mov esi, eax
sub edi, edx
nop dword [eax + eax]
test si, si
je 0x55dac6
mov word [edi + edx], si
inc ecx
movzx eax, word [edx + 2]
add edx, 2
mov esi, eax
cmp eax, 0x20
jne 0x55da80
jmp 0x55dac6
movzx eax, word [edx + 2]
add edx, 2
cmp eax, 0x22
je 0x55dac6
mov esi, eax
nop dword [eax + eax]
mov word [esp + ecx*2 + 0x80], si
lea edx, [edx + 2]
movzx eax, word [edx]
inc ecx
mov esi, eax
cmp eax, 0x22
jne 0x55dab0
mov dword [esp + ecx*2 + 0x7e], 0x69
lea edx, [esp + 0xc]
mov dword [esp + ecx*2 + 0x7a], 0x6e0069
lea ecx, [esp + 0x80]
mov dword [0x5f64c4], 0
mov dword [0x5f64c0], 0
call fcn.00410400
mov edi, eax
test edi, edi
je 0x55db4f
cmp edi, 0xa
jle 0x55db4a
push 0x7d0
call fcn.00560858
add esp, 4
mov esi, eax
push dword [esp + 0xc]
push edi
push 0x5b6398
push 0x5aa1dc
push 0x1f4
push esi
call fcn.00406c50
add esp, 0x18
push 0x30
push 0x591508
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.00560853
add esp, 4
call fcn.004102f0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x80]
push eax
push 0
push str.WindowPositionX
push str.Setting
call esi
mov ebx, eax
lea eax, [esp + 0x80]
push eax
push 0
push str.WindowPositionY
push str.Setting
call esi
mov edi, eax
lea eax, [esp + 0x80]
push eax
push 0x320
push str.WindowSizeX
push str.Setting
call esi
mov esi, eax
lea eax, [esp + 0x80]
push eax
push 0x258
push str.WindowSizeY
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x14]
push 0
push 0
push eax
push esi
push edi
push ebx
push 0xcf0000
push 0x591508
push str.OYAZIVIEWER
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x55dd2e
lea eax, [esp + 0x80]
push eax
push 1
push str.WindowMax
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x55dc1b
cmp byte [0x5f5c87], 0
jne 0x55dc1b
push 9
jmp 0x55dc1d
push 3
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x54]
push 0
push 0
push 0
push eax
call ebx
movzx eax, ax
test ax, ax
je 0x55dd03
mov esi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop dword [eax]
cmp ax, 0xffff
je 0x55dd03
mov eax, dword [esp + 0x14]
test eax, eax
je 0x55dc6e
lea ecx, [esp + 0x54]
push ecx
push eax
call esi
test eax, eax
jne 0x55dcea
mov eax, dword [esp + 0x18]
test eax, eax
je 0x55dc82
lea ecx, [esp + 0x54]
push ecx
push eax
call esi
test eax, eax
jne 0x55dcea
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x55dc96
lea ecx, [esp + 0x54]
push ecx
push eax
call esi
test eax, eax
jne 0x55dcea
mov eax, dword [esp + 0x20]
test eax, eax
je 0x55dcaa
lea ecx, [esp + 0x54]
push ecx
push eax
call esi
test eax, eax
jne 0x55dcea
mov eax, dword [esp + 0x24]
test eax, eax
je 0x55dcbe
lea ecx, [esp + 0x54]
push ecx
push eax
call esi
test eax, eax
jne 0x55dcea
lea eax, [esp + 0x54]
push eax
push dword [0x5f64c4]
push edi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x55dcea
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x60]
push eax
call ebx
movzx eax, ax
test ax, ax
jne 0x55dc50
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [esp + 0x50]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x484]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056060a
mov esp, ebp
pop ebp
ret 0x10