Function at 0x48be90
Capabilities:
Check if file exists
Get file attributes
Hide graphical window
Read .ini file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4f0
push ebx
push ebp
push esi
push edi
mov ecx, 0x106
xor eax, eax
mov edi, 0x5b96e0
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x84
mov edi, 0x5b9040
push ebp
push 0x5b9480
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x1c], 5
mov word [0x5b96a0], 0x49
mov word [0x5b96a2], 0x72
mov word [0x5b96a4], 0x66
mov word [0x5b96a6], 0x61
mov word [0x5b96a8], 0x6e
mov word [0x5b96aa], 0x56
mov word [0x5b96ac], 0x69
mov word [0x5b96ae], 0x65
mov word [0x5b96b0], 0x77
mov word [0x5b96b2], bp
mov word [0x5b9d20], bp
call fcn.004c94a0
push 0x5b9480
push str._si_view32.ini
push 0x5b9260
call fcn.004d5ee1
push 1
push ebp
call fcn.004778f0
mov esi, dword [esp + 0x528]
mov edi, dword [esp + 0x520]
add esp, 0x1c
mov dword [0x5b6ee0], 0xffffffff
cmp word [esi], bp
je 0x48c015
push esi
mov dword [esp + 0x4c], ebp
mov dword [0x5b564c], 1
call fcn.004d6713
add esp, 4
inc eax
cmp eax, 0xfff
jbe 0x48bf96
mov eax, 0xfff
jmp 0x48bfa0
push esi
call fcn.004d6713
add esp, 4
inc eax
push eax
push esi
push 0x5b6fc0
call fcn.004d6c3f
lea eax, [esp + 0x54]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x78]
push ecx
push edx
push 0x5b9480
push 0x5b96e0
push 0x5b6fc0
push edi
mov dword [0x5b5574], edi
call fcn.00455450
add esp, 0x28
mov dword [0x59f780], eax
test al, 1
je 0x48c015
mov eax, dword [0x5b5510]
cmp eax, ebp
je 0x48c004
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x5b5510]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5b5510], ebp
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4f0
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x5b9260
push ebp
push str.FullScreen
push str.Viewing
call ebx
test eax, eax
je 0x48c03d
mov eax, dword [0x59f780]
or al, 0x40
mov dword [0x59f780], eax
call fcn.0048bde0
mov eax, dword [0x5ba148]
xor ecx, ecx
mov cl, byte [0x5ba14a]
xor edx, edx
shl ecx, 8
mov dl, ah
and eax, 0xff
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [0x5b5618], eax
mov eax, dword [0x5b561c]
cmp eax, ebp
je 0x48c081
call fcn.00443b90
mov dword [0x5b5620], eax
mov eax, dword [esp + 0x508]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov ebp, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x5b550c], edi
test eax, eax
jne 0x48c0f1
xor eax, eax
push 0x3e8
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x47f090
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x34], eax
call ebp
mov dword [esp + 0x34], 5
mov dword [esp + 0x30], eax
mov eax, 0x5b96a0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0x7f00
push 0
mov dword [esp + 0x20], 0xb
mov dword [esp + 0x44], str.IrfanViewerClass
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0x4d3650
call ebp
push 0x7f00
push 0
mov dword [esp + 0x38], eax
call esi
mov ecx, dword [0x5b5618]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
push 1
push 1
call fcn.00476700
push 1
call fcn.004c49a0
mov ecx, dword [0x5b6ed0]
add esp, 0xc
cmp ecx, eax
jl 0x48c16b
mov dword [0x5b6ed0], 0
push 1
call fcn.004c49d0
mov ecx, dword [0x5b6fb0]
add esp, 4
cmp ecx, eax
jl 0x48c189
mov dword [0x5b6fb0], 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x30], 0xfffffc19
call fcn.004c3670
mov ecx, eax
add esp, 0x20
cdq
and edx, 3
mov esi, ecx
add eax, edx
mov dword [0x5ba36c], ecx
sar eax, 2
sub esi, eax
mov dword [0x5b9d08], ecx
cmp esi, ecx
mov dword [esp + 0x10], ecx
jle 0x48c1d1
mov esi, ecx
mov eax, dword [0x59f738]
test eax, eax
je 0x48c2ad
push 0x5b9260
push ecx
push 0x599dc4
push str.WinPosition
call ebx
push 0x5b9260
push esi
push 0x599dac
push str.WinPosition
mov dword [esp + 0x20], eax
call ebx
mov esi, eax
mov eax, dword [0x5b9d08]
cmp dword [esp + 0x10], eax
jge 0x48c217
mov dword [esp + 0x10], eax
push 1
call fcn.004c49a0
mov edx, dword [0x5b6ed0]
mov ecx, dword [esp + 0x14]
sub eax, edx
add esp, 4
cmp ecx, eax
jle 0x48c247
push 1
call fcn.004c49a0
mov ecx, dword [0x5b6ed0]
add esp, 4
sub eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x5b9d08]
mov eax, ecx
cdq
and edx, 3
add edx, eax
mov eax, ecx
sar edx, 2
sub eax, edx
cmp esi, eax
jge 0x48c262
mov esi, eax
push 1
call fcn.004c49d0
mov edx, dword [0x5b6fb0]
add esp, 4
sub eax, edx
cmp esi, eax
jle 0x48c28b
push 1
call fcn.004c49d0
mov esi, eax
mov eax, dword [0x5b6fb0]
add esp, 4
sub esi, eax
push 0x5b9260
push 0
push str.Maximized
push str.WinPosition
call ebx
test eax, eax
je 0x48c2ad
mov ebp, 3
mov dword [esp + 0x14], ebp
jmp 0x48c2b1
mov ebp, dword [esp + 0x14]
mov eax, dword [0x59f780]
test ah, 2
je 0x48c2cf
push 1
push 0x5b6fb0
push 0x5b6ed0
call fcn.00453c40
add esp, 0xc
mov eax, dword [0x5b561c]
push eax
call fcn.00446b80
mov ecx, dword [esp + 0x14]
mov edx, dword [0x5b6fb0]
add esp, 4
mov eax, dword [0x5b6ed0]
push 0
push edi
push 0
push 0
push esi
push ecx
push edx
push eax
push 0x4cf0000
push 0x5b96a0
push 0x5b96a0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
mov dword [0x5b5528], eax
jne 0x48c342
push 0x2040
push 0x5b96a0
push str.Cant_start_IrfanView_
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4f0
ret 0x10
push 0x5b96a0
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push str.commdlg_FileNameOK
mov dword [0x5b5524], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x5b5588], eax
test byte [0x5b5650], 1
je 0x48c37d
mov ecx, dword [0x5b553c]
push 0
push ecx
call ebx
test byte [0x5b5650], 2
je 0x48c391
mov edx, dword [0x5b5548]
push 0
push edx
call ebx
test byte [0x5b5650], 4
je 0x48c39f
call fcn.0047baf0
test byte [0x5b5650], 8
je 0x48c3ad
call fcn.0047bab0
mov al, byte [0x59f780]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 8
je 0x48c3e4
mov eax, dword [0x5b5528]
push 0
push eax
mov word [0x5b96e0], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x5b5528]
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call ebp
jmp 0x48c44c
test al, 0x20
je 0x48c422
push 0x5b96e0
call esi
cmp word [0x5b96e0], 0
je 0x48c409
cmp eax, 0xffffffff
je 0x48c405
and eax, 0x10
cmp al, 0x10
je 0x48c409
push 5
jmp 0x48c427
cmp ebp, 3
jne 0x48c417
mov eax, dword [0x5b5528]
push ebp
push eax
call ebx
mov ecx, dword [0x5b5528]
push 0
push ecx
jmp 0x48c42e
test al, 0x40
jne 0x48c430
push ebp
mov edx, dword [0x5b5528]
push edx
call ebx
mov eax, dword [0x5b5528]
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call ebp
mov eax, dword [0x5b561c]
test eax, eax
je 0x48c44c
call fcn.004c16a0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor ebx, ebx
push 4
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x46f3a0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], str.FullScreenClass
call dword [sym.imp.USER32.dll_RegisterClassW]
cmp word [0x5b96e0], bx
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
je 0x48c62a
test byte [0x59f780], 2
je 0x48c62a
push 0x5b96e0
call esi
cmp eax, 0xffffffff
je 0x48c51a
and eax, 0x10
cmp al, 0x10
jne 0x48c51a
push 0x5b96e0
call fcn.004d7731
push 0
push 1
push 1
call fcn.00477270
mov al, byte [0x59f780]
add esp, 0x10
test al, 0x20
push 0
je 0x48c503
mov edx, dword [0x5b5528]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x48c5cb
mov eax, dword [0x5b5528]
push 0x43e
push 0x111
push eax
call ebx
jmp 0x48c5cb
mov eax, dword [0x5b5510]
test eax, eax
je 0x48c541
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x5b5510]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x5b5510], 0
push 0x598a58
push 0x5b96e0
call fcn.004d6acd
add esp, 8
test eax, eax
je 0x48c58d
lea edx, [esp + 0x2b0]
push edx
push 0x5b96e0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x48c58d
lea eax, [esp + 0x2dc]
push eax
push 0x5b96e0
call fcn.004d631b
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
push 0
push 0x5b55a0
mov ecx, dword [esp + 0x54]
push 0x5b55b0
push 0
push 0x59f718
push 0
push 0
push 0
push 1
push 0
push 1
push ecx
push 0
push 1
push 0x5b96e0
call fcn.004a86a0
add esp, 0x44
mov dword [0x5b5510], eax
mov edx, dword [0x59f73c]
push 0
push 1
push edx
push 1
push 1
push 1
call fcn.004788e0
mov eax, dword [0x5b55f8]
add esp, 0x18
test eax, eax
mov dword [esp + 0x40], 1
je 0x48c62a
mov ecx, dword [0x59f780]
test ecx, 0x148400
jne 0x48c62a
test cl, 0x50
jne 0x48c62a
mov ecx, dword [0x5b5528]
mov edx, dword [0x5b55a8]
push ecx
push eax
mov eax, dword [0x5b55a4]
push edx
push eax
push 0x5b96e0
call fcn.0042f590
add esp, 0x14
test byte [0x59f780], 4
je 0x48c654
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x48c654
mov ecx, dword [0x59f73c]
push 0
push 1
push ecx
push 1
push 1
push 1
call fcn.004788e0
add esp, 0x18
mov eax, dword [0x59f780]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
test al, 0x40
je 0x48c796
test al, 0x18
jne 0x48c796
and al, 0xbf
test eax, 0x40000
mov dword [0x59f780], eax
je 0x48c6c1
lea edx, [esp + 0x68]
push edx
call fcn.0048bd50
mov ecx, dword [0x59f780]
mov eax, dword [0x5b5510]
add esp, 4
and ecx, 0xfffbffff
test eax, eax
mov dword [0x59f780], ecx
jne 0x48c6e2
mov eax, dword [0x5b5528]
push 0
push 0x43e
push 0x111
push eax
call esi
jmp 0x48c6e2
cmp dword [0x59f718], 0xffffffff
jne 0x48c6d4
cmp word [0x5b96e0], 0
je 0x48c714
push 0
push 0
push 1
call fcn.00477270
add esp, 0xc
mov eax, dword [0x59f718]
cmp eax, 1
je 0x48c6f6
cmp eax, 0x11
je 0x48c6f6
cmp eax, 0x6e
jne 0x48c714
cmp dword [0x5b55b0], 1
jle 0x48c714
mov ecx, dword [0x5b5528]
push 0x65
push 0x448
push 0x111
push ecx
jmp 0x48c727
mov edx, dword [0x5b5528]
push 0
push 0x448
push 0x111
push edx
call esi
test byte [0x59f780], 0x20
je 0x48c73b
mov eax, dword [0x5b5510]
test eax, eax
je 0x48c77c
mov eax, dword [esp + 0x14]
mov ecx, dword [0x5b5528]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x5b5528]
push edx
call ebp
mov eax, dword [0x5b5510]
test eax, eax
je 0x48c77c
mov eax, dword [0x5b55a0]
test eax, eax
je 0x48c77c
mov eax, dword [0x5b5528]
push 0
push 0x472
push 0x111
push eax
call ebx
mov ecx, dword [0x5b5530]
push ecx
call edi
test eax, eax
je 0x48c796
mov edx, dword [0x5b5530]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x5b55ec]
mov esi, dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x48c7fa
mov eax, dword [0x5b5528]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x48c7fa
mov ecx, dword [0x5b5530]
push ecx
call edi
test eax, eax
jne 0x48c7e3
mov edx, dword [0x5b5534]
push edx
call edi
test eax, eax
jne 0x48c7e3
push 0x43
push eax
push eax
push eax
push eax
mov eax, dword [0x5b5528]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x5b5528]
push 8
push 0x412
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x59f780]
test ah, 0x84
je 0x48c819
mov edx, dword [0x5b5528]
push 0x65
push 0x411
push 0x111
push edx
call ebx
test dword [0x59f780], 0x100000
je 0x48c839
mov eax, dword [0x5b5528]
push 6
push 0x417
push 0x111
push eax
call ebx
test dword [0x59f780], 0x800000
je 0x48c85d
mov ecx, dword [0x5b5528]
push 0x3e7
push 0x90
push 0x111
push ecx
call ebx
test dword [0x59f780], 0x40000
je 0x48c893
lea edx, [esp + 0x68]
push edx
call fcn.0048bd50
mov al, byte [0x59f780]
add esp, 4
test al, 0x20
jne 0x48c89c
mov eax, dword [0x5b5528]
push 0
push 0x43e
push 0x111
push eax
call ebx
test byte [0x59f780], 0x20
je 0x48c8ca
mov ecx, dword [0x5b5528]
push 0
push 0x49a
push 0x111
push ecx
call ebx
cmp word [0x5b96e0], 0
jne 0x48c8ca
mov edx, dword [0x5b5528]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x59f780]
test al, 0x10
je 0x48c8ef
and al, 0xbf
mov dword [0x59f780], eax
and eax, 0x1000
push eax
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.004b1380
add esp, 0xc
mov ecx, dword [0x59f740]
mov edx, dword [0x5b5528]
push ecx
push 0x5b96e0
push edx
call fcn.0048ffb0
mov eax, dword [0x5b561c]
mov ecx, dword [0x5b5528]
add esp, 0xc
push eax
push ecx
call esi
push eax
call fcn.00446480
add esp, 8
push 2
push 0
call dword [0x5aae44]
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x48caad
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
mov esi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
cmp eax, 0xffffffff
je 0x48caad
mov eax, dword [0x5b562c]
test eax, eax
lea eax, [esp + 0x4c]
jne 0x48ca8a
mov edx, dword [0x5b5528]
push edx
push eax
call fcn.00416220
add esp, 8
test eax, eax
jne 0x48ca94
mov eax, dword [0x5b556c]
test eax, eax
je 0x48c9ac
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x48ca94
mov edx, dword [0x5b5530]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48c9e0
call edi
mov ecx, dword [0x5b5530]
cmp eax, ecx
jne 0x48c9e0
mov edx, dword [0x5b5524]
lea eax, [esp + 0x4c]
push eax
push edx
push ecx
call esi
test eax, eax
jne 0x48ca94
mov eax, dword [0x5b5534]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48ca0c
mov edx, dword [0x5b5524]
mov eax, dword [0x5b5534]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x48ca94
mov ecx, dword [0x5b554c]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x48ca6d
call edi
mov ecx, dword [0x5b554c]
cmp eax, ecx
jne 0x48ca6d
mov eax, dword [0x5b5524]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
call esi
test eax, eax
je 0x48ca6d
cmp dword [esp + 0x50], 0x100
jne 0x48ca94
mov eax, dword [esp + 0x54]
cmp eax, 0xd
je 0x48ca53
cmp eax, 0x20
jne 0x48ca94
mov ecx, dword [esp + 0x58]
mov edx, dword [0x5b554c]
push ecx
push eax
push pe_nt_image_headers32
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48ca94
mov ecx, dword [0x5b5524]
mov edx, dword [0x5b5528]
lea eax, [esp + 0x4c]
push eax
push ecx
push edx
call esi
test eax, eax
jne 0x48ca94
lea eax, [esp + 0x4c]
push eax
call ebx
lea ecx, [esp + 0x4c]
push ecx
call ebp
push 0
push 0
lea edx, [esp + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x48c95d
call fcn.004764e0
mov eax, dword [0x5b5680]
test eax, eax
je 0x48cad0
push eax
call fcn.0042dbe0
mov eax, dword [0x5b5680]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [0x5aae40]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4f0
ret 0x10