Function at 0x424310
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x2f0
xor eax, eax
mov dword [0x4770f4], eax
mov dword [0x47718c], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
mov ebp, dword [esp + 0x2fc]
push esi
push edi
push 0x465
push ebp
mov dword [0x4770ec], eax
mov dword [0x476784], 0xffffffff
mov dword [0x476820], eax
mov dword [0x476780], eax
mov dword [0x47694c], eax
mov dword [0x476948], 0xc
call ebx
mov edi, eax
mov esi, 0x45aa68
mov eax, dword [esi]
lea ecx, [esp + 0xfc]
push eax
push 0x45aa30
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xfc]
push edx
push 0
push 0x143
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi]
push ecx
push eax
push 0x151
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 4
cmp esi, 0x45aa90
jb 0x42436a
push 0x10
push 0x45ab54
push 0x1069
call fcn.00440930
push eax
lea edx, [esp + 0x100]
push 0x45aa30
push edx
mov dword [0x476948], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
push 0xffffffffffffffff
push 0x158
push edi
call esi
xor ecx, ecx
push 0
test eax, eax
setl cl
dec ecx
and ecx, eax
push ecx
push 0x14e
push edi
call esi
mov eax, dword [0x477450]
lea edx, [esp + 0xfc]
push edx
push 0x100
push 0x2d54
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xfc]
push ecx
push 0x4767a0
call edi
push 0x4767a0
push 0x466
push ebp
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x466
push ebp
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 1
push 0
push 0x45b
push ebp
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowScrollBar]
push eax
call esi
push 0
push 1
push 0x45b
push ebp
call ebx
push eax
call esi
push 0x476840
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x476828]
test eax, eax
je 0x4244a0
push ebp
call fcn.00427870
mov edx, dword [0x477340]
push 0x73
push edx
mov dword [0x476828], 1
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
lea eax, [esp + 0x64]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0
mov eax, dword [esp + 0x6c]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push eax
push 1
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff00ff
push esi
push eax
mov dword [0x476824], eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x476824]
push ecx
push 0
push 0x1109
push 0x47a
push ebp
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call esi
mov edx, dword [0x476824]
push edx
push 0
push 0x1109
push 0x479
push ebp
call ebx
push eax
call esi
mov eax, dword [0x477180]
test eax, eax
jne 0x42481f
mov eax, dword [0x4773bc]
lea ecx, [esp + 0x1fc]
push eax
push ecx
call edi
lea edx, [esp + 0x1fc]
push edx
call fcn.00448e70
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1fc]
push 0x45aa34
push eax
call ebx
push 0
push 0
push 3
push 0
push 0
lea ecx, [esp + 0x210]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x4247da
lea edx, [esp + 0x20]
push 0
push edx
lea ecx, [esp + 0x4c]
push 0x20
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4247cf
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push 0x45aa30
push eax
call fcn.0044cf4e
add esp, 0xc
cmp eax, 1
jne 0x4247cf
mov eax, dword [esp + 0x10]
cmp eax, 1
jl 0x4247cf
cmp eax, 0x64
jg 0x4247cf
shl eax, 5
push eax
call fcn.0044c0d4
mov ecx, dword [esp + 0x14]
mov esi, eax
shl ecx, 5
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x1c], esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x424660
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x4c]
push 0x20
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4247cf
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
add esi, 0x20
mov eax, dword [esp + 0x10]
cmp edi, eax
jl 0x424627
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov edi, ebp
push 0x45ab40
shl edi, 5
call esi
mov edx, eax
push 0x45aaf4
mov dword [esp + 0x28], edx
call esi
mov ecx, edi
mov edx, dword [esp + 0x24]
add ecx, edx
lea eax, [eax + ecx + 1]
push eax
call fcn.0044c0d4
add esp, 4
mov esi, eax
push 0x45aaf4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x45ab40
push esi
call ebx
lea eax, [ebp - 1]
test eax, eax
jle 0x4246dd
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0x45ab38
push esi
call ebx
push ebp
push esi
call ebx
push 0x45aae8
push esi
call ebx
add ebp, 0x20
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4246bb
push 0x45ab38
push esi
call ebx
mov ebp, dword [esp + 0x1c]
lea eax, [edi + ebp - 0x20]
push eax
push esi
call ebx
push ebp
call fcn.0044c186
add esp, 4
push esi
call fcn.0042a850
mov ebx, eax
test ebx, ebx
je 0x4247c8
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x42472a
mov edi, ebx
mov ecx, dword [edi]
push ecx
call fcn.00422d10
inc esi
add edi, 4
mov eax, dword [esp + 0x10]
cmp esi, eax
jl 0x424716
xor edi, edi
test eax, eax
jle 0x42474d
mov esi, ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x424745
push ecx
call fcn.0044c186
mov eax, dword [esp + 0x14]
add esp, 4
inc edi
add esi, 4
cmp edi, eax
jl 0x424732
push ebx
call fcn.0044c186
add esp, 4
call fcn.00422e10
mov esi, eax
xor ebx, ebx
xor edi, edi
test esi, esi
jle 0x424772
push ebx
call fcn.00422e60
add edi, eax
inc ebx
cmp ebx, esi
jl 0x424765
cmp esi, 1
mov ecx, 0x464964
je 0x424781
mov ecx, 0x45aabc
mov eax, edi
xor edx, edx
mov ebx, 0x64
div ebx
mov eax, 0x51eb851f
push edx
mul edi
shr edx, 5
push edx
push ecx
push esi
lea edx, [esp + 0x8c]
push 0x45aa90
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x31c]
add esp, 0x18
lea eax, [esp + 0x7c]
push eax
push 0x46a
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebp, dword [esp + 0x304]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x477180]
test eax, eax
jne 0x424819
push 0x88
call fcn.0044c0d4
mov dword [0x477180], eax
mov dword [eax], 0
mov eax, dword [0x477180]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 4
mov dword [eax + 4], 0
mov ecx, dword [0x477180]
mov byte [ecx + 8], 0
jmp 0x424824
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call fcn.00422e10
mov eax, dword [0x477180]
test eax, eax
je 0x424a31
push 0x479
push ebp
call ebx
mov edx, dword [0x477180]
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov edi, dword [edx + 4]
test edi, edi
mov dword [esp + 0x30], edi
jle 0x424a31
push esi
call fcn.00422e80
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x38], ebp
je 0x424a24
mov eax, dword [esp + 0x14]
push esi
push eax
push 0xe
push 0xffff0000
push ebp
push 0
call fcn.00424f20
mov ebx, eax
push esi
mov dword [esp + 0x24], ebx
call fcn.00422ef0
xor edi, edi
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4249fc
mov ebx, 1
jmp 0x4248a6
mov esi, dword [esp + 0x10]
mov edx, dword [0x477180]
xor ecx, ecx
test edi, edi
mov eax, dword [edx]
push edi
sete cl
mov esi, dword [eax + esi*4]
mov dword [esp + 0x40], ecx
push esi
call fcn.00429730
push edi
push esi
mov dword [esp + 0x20], eax
call fcn.00429750
push edi
push esi
mov dword [esp + 0x24], eax
call fcn.00429770
mov ebp, eax
lea ecx, [esp + 0x44]
push ebp
push 0x45ab30
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp ebx, eax
mov dword [esp + 0x28], 0
jge 0x424965
push ebx
push esi
call fcn.00429730
push ebx
push esi
mov dword [esp + 0x48], eax
call fcn.00429750
push ebx
push esi
mov dword [esp + 0x34], eax
call fcn.00429770
mov esi, eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x424965
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call fcn.00455870
add esp, 8
test eax, eax
jne 0x424965
push esi
push ebp
lea eax, [esp + 0x4c]
push 0x45ab24
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [esp + 0x28], 1
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x84]
push 0x45a524
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x4c]
add esp, 0x10
test eax, eax
mov esi, 0xffff0001
jne 0x424996
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, edi
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
push 0x45ab18
call fcn.00455870
add esp, 8
mov edx, dword [esp + 0x28]
neg eax
sbb eax, eax
lea ecx, [esp + 0x84]
neg eax
inc eax
push eax
push esi
push ecx
push edx
call fcn.00424f20
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4249e2
inc edi
inc ebx
mov eax, dword [esp + 0x24]
inc edi
inc ebx
cmp edi, eax
jl 0x4248a2
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x424a17
test ebx, ebx
je 0x424a17
mov eax, dword [esp + 0x14]
push ebx
push 9
push 0x110b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebp
call fcn.0044c186
mov edi, dword [esp + 0x34]
add esp, 4
inc esi
cmp esi, edi
mov dword [esp + 0x10], esi
jl 0x424858
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2f0
ret 4