Function at 0x427650
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47220c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x3f0]
lea eax, [ebp - 0x18]
push eax
call fcn.00406ce0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [edi + 0x414]
mov dword [edi + 0x414], ecx
mov dword [edi + 0x410], edx
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test esi, esi
je 0x4276dd
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4276dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4276dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x427709
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x427709
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x427709
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x410]
cmp dword [eax + 0x14], 8
jb 0x42771e
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x427770
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x420], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x424], eax
push ecx
push str.checkOpenDir
lea ecx, [edi + 4]
call fcn.0041d390
push ecx
push str.btn_close
lea ecx, [edi + 4]
mov dword [edi + 0x3f8], eax
call fcn.0041cbc0
push ecx
push str.fbmpSrc
lea ecx, [edi + 4]
mov dword [edi + 0x418], eax
call fcn.00429970
push ecx
push str.fbmpDes
lea ecx, [edi + 4]
mov dword [edi + 0x408], eax
call fcn.00429970
push ecx
push str.fbmpFailSrc
lea ecx, [edi + 4]
mov dword [edi + 0x404], eax
call fcn.00429970
push ecx
push str.tabMainWindow
lea ecx, [edi + 4]
mov dword [edi + 0x400], eax
call fcn.0041cd00
push 0
push 0
mov dword [edi + 0x3fc], eax
call dword [sym.imp.FreeImage.dll__FreeImage_OpenMemory_8]
mov dword [edi + 0x40c], eax
test eax, eax
je 0x4278d0
cmp dword [edi + 0x424], 0
jl 0x4278b4
jg 0x42781f
cmp dword [edi + 0x420], 0x100000
jbe 0x4278b4
mov ecx, dword [edi + 0x418]
push 1
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
mov edx, fcn.00429890
lea ecx, [ebp - 0x20]
call fcn.00429c10
add esp, 4
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00429c50
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x427869
push 8
push eax
call fcn.0043f550
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x427884
push 1
call fcn.0043e174
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
push dword [ebp - 0x18]
call fcn.0043e1fa
add esp, 8
test eax, eax
je 0x42789d
push eax
call fcn.0043e147
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x4278d0
mov ecx, dword [edi + 0x3fc]
push 0
push str.pageSuccess
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::STabCtrl::SetCurSel_wchar_t_const___int_]
push edi
call fcn.00429890
add esp, 4
mov ecx, edi
call fcn.00428ac0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret 8