Function at 0x412b60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb34
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0xb30], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, eax
imul esi, esi, 0x1008
add esi, dword [0x464c00]
xor ebx, ebx
mov dword [esp + 0xd8], ebx
cmp dword [esi], 0x1f
mov ecx, dword [esi + 0xa10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x80], ebx
jne 0x412bee
mov edx, dword [ebp + 0x10]
push edx
push eax
push edi
call fcn.0040c030
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb30]
xor ecx, esp
call fcn.0043b76b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], ebx
mov byte [esp + 0x930], bl
mov byte [esp + 0x728], bl
je 0x412c1e
lea eax, [esi + 0x934]
lea edx, [esp + 0xa38]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x412c10
jmp 0x412c78
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x147
push 0xcc
push edi
call ebx
test eax, eax
jge 0x412c60
push 0x8b
call fcn.0040ab70
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb30]
xor ecx, esp
call fcn.0043b76b
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xa38]
push ecx
push eax
push 0x148
push 0xcc
push edi
call ebx
xor ebx, ebx
lea edx, [esp + 0xa38]
push edx
push edi
call fcn.004084f0
add esp, 8
test eax, eax
je 0x412c9a
mov dword [esp + 0x64], 1
jmp 0x413651
mov eax, dword [0x46530c]
mov cx, word [ebp + 0x10]
mov word [eax + 0x36], cx
mov edx, dword [0x46530c]
push edx
push ebx
lea eax, [esp + 0xa40]
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDCA]
cmp eax, ebx
mov dword [esp + 0x30], eax
jne 0x412cd3
mov dword [esp + 0x64], 1
jmp 0x413651
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x6e
push ebx
call edi
push 0x6f
push ebx
mov dword [esp + 0x48], eax
call edi
push 0x70
push ebx
mov dword [esp + 0x40], eax
call edi
mov ecx, dword [esp + 0x30]
push 0x71
push ecx
mov ebx, eax
call edi
mov edx, dword [esp + 0x30]
push 0x58
push edx
mov dword [esp + 0x70], eax
call edi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
neg ebx
lea ebx, [eax + ebx*2]
mov eax, dword [esp + 0x68]
neg eax
lea eax, [ecx + eax*2]
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
je 0x412d94
mov ecx, dword [esi + 0x9b4]
mov eax, dword [esi + 0x9bc]
mov edx, dword [esi + 0x9b8]
sub eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x9c0]
mov ebx, dword [esp + 0x50]
sub eax, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
cmp dword [ebp + 0x14], 0
fild dword [esp + 0x94]
mov edx, dword [esp + 0x58]
fidiv dword [edx + 0x20]
je 0x412e0a
fld qword [esi + 0x9d8]
jmp 0x412e0c
xor edx, edx
cmp dword [0x4652ec], edx
je 0x412dc0
mov ecx, dword [esi + 0xef0]
mov eax, dword [esi + 0xeec]
mov ebx, dword [esi + 0xef4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0xef8]
mov dword [esp + 0x48], eax
jmp 0x412dd2
mov eax, dword [esp + 0x58]
mov ebx, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], edx
cmp dword [0x460008], edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ebx
je 0x412d78
mov eax, dword [esp + 0x40]
shl eax, 8
cdq
idiv ebx
mov edi, eax
mov eax, dword [esp + 0x38]
shl eax, 8
cdq
idiv ecx
cmp edi, eax
jge 0x412e02
mov dword [esp + 0x3c], edi
jmp 0x412e21
mov edi, eax
mov dword [esp + 0x3c], edi
jmp 0x412e21
fld1
fxch st(1)
fmul qword [0x4539c0]
fdivrp st(1)
call fcn.0043b6c0
mov edi, eax
mov dword [esp + 0x3c], eax
cmp edi, 0x100
jle 0x412f5f
cmp dword [esi], 9
jne 0x412f5f
lea eax, [esp + 0x830]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x728]
push ecx
push 0
push 0x453718
lea edx, [esp + 0x83c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x930]
push eax
push 0
push 0x453714
lea ecx, [esp + 0x83c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [esp + 0x728]
mov dword [esp + 0x34], edx
mov edi, edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
push eax
push ecx
call fcn.0041f670
add esp, 8
test eax, eax
jne 0x412ffd
lea edx, [esp + 0x258]
cmp dword [esp + 0x58], edx
jne 0x412ec4
mov eax, dword [esp + 0x58]
push eax
call fcn.0041e2d0
add esp, 4
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x258]
mov edx, ecx
push edx
push eax
mov dword [esp + 0x60], ecx
call fcn.0041df60
add esp, 8
test eax, eax
jne 0x412ffd
lea ecx, [esp + 0x728]
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x7c], 1
jne 0x412f09
lea edx, [esp + 0x930]
mov dword [esp + 0x34], edx
jmp 0x412f14
lea eax, [esp + 0x728]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
lea edx, [ecx + ecx]
lea ecx, [eax + eax]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x54]
lea eax, [edx + edx]
mov dword [esp + 0x54], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x5c]
mov edi, eax
add ebx, ebx
cmp edi, 0x100
lea edx, [ecx + ecx]
mov dword [esp + 0x5c], edx
jg 0x412e90
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x40]
shl eax, 8
cdq
idiv edi
mov ebx, eax
mov eax, dword [esp + 0x38]
shl eax, 8
cdq
idiv edi
mov dword [esp + 0x60], ebx
mov ecx, eax
mov eax, dword [esp + 0x54]
lea eax, [ecx + eax - 1]
cdq
idiv ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x34], ecx
mov ecx, eax
lea eax, [ebx + edx - 1]
cdq
idiv ebx
imul ecx, eax
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov dword [esp + 0xc0], 0x14
mov dword [esp + 0xc4], str.Document
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jg 0x41300b
mov esi, 1
jmp 0x413655
mov dword [esp + 0x50], ebx
mov esi, 1
jmp 0x413655
push 0x7f02
push 0
mov dword [0x464e3c], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov ecx, edi
mov dword [esp + 0x80], eax
lea eax, [edx + ecx]
cmp ecx, eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0xa4], eax
jge 0x413646
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
add ecx, edx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
jge 0x413636
mov eax, ebx
neg eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], eax
mov edi, edi
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xb4]
push ecx
add eax, 1
push eax
push 0x465198
push 0x70
mov dword [esp + 0xa8], eax
call fcn.00406080
add esp, 8
push eax
lea edx, [esp + 0x83c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0xac]
add esp, 0x10
lea eax, [esp + 0x830]
push eax
push 0xcb
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x412ff3
mov eax, dword [esi]
cmp eax, 0x1e
jne 0x4131ba
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
sub eax, edi
add eax, ecx
mov ecx, dword [esp + 0x34]
cmp ecx, eax
mov dword [esp + 0xa8], eax
jl 0x413121
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp ebx, eax
jge 0x41312b
mov eax, ebx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x44]
push edi
push eax
push ecx
push edx
call fcn.0040dfb0
add esp, 0x1c
test eax, eax
jne 0x412ff3
push 0x174
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.0043ae80
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edi
jge 0x413188
mov dword [esp + 0xec], ebx
jmp 0x413193
mov edx, dword [esp + 0x44]
mov dword [esp + 0xec], edx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xa8]
cmp ecx, eax
jge 0x4131ae
mov dword [esp + 0xf0], ecx
jmp 0x41347e
mov dword [esp + 0xf0], eax
jmp 0x41347e
cmp eax, 0x1a
jne 0x41325e
mov eax, dword [esi + 0xef0]
mov ecx, dword [esi + 0xef4]
mov edx, dword [esi + 0xef8]
mov edi, dword [esi + 0xee8]
mov ebx, dword [esi + 0xeec]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0xee8], eax
mov eax, dword [esp + 0x44]
cmp edx, eax
mov dword [esi + 0xeec], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xef0], ecx
jge 0x413222
mov eax, edx
mov edx, dword [esp + 0x54]
mov dword [esi + 0xef4], eax
mov eax, dword [esp + 0x4c]
sub edx, ecx
mov ecx, dword [esp + 0x34]
add eax, edx
cmp ecx, eax
jge 0x41323e
mov eax, ecx
mov edx, dword [esp + 0x30]
push 1
lea ecx, [esp + 0x70]
push ecx
mov dword [esi + 0xef8], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
call fcn.00412580
jmp 0x4132fd
cmp eax, 0x1b
jne 0x413371
mov edx, dword [esi + 0xef4]
mov ecx, dword [esi + 0xef0]
mov eax, dword [esi + 0xef8]
mov ebx, dword [esi + 0xeec]
mov edi, dword [esi + 0xee8]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0xeec], edx
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esi + 0xee8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xef0], ecx
jge 0x4132c6
mov eax, edx
mov dword [esi + 0xef4], eax
mov eax, dword [esp + 0x54]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jge 0x4132e2
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push 1
lea edx, [esp + 0x70]
mov dword [esi + 0xef8], eax
mov eax, dword [esp + 0x34]
push edx
push eax
push ecx
call fcn.00427970
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0xf4], eax
sub edx, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x9c]
add esp, 0x10
sub eax, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x90]
mov dword [esi + 0xeec], ebx
mov dword [esi + 0xef0], ecx
mov dword [esi + 0xef4], edx
mov dword [esi + 0xee8], edi
mov dword [esi + 0xef8], eax
jmp 0x41347e
push 0x174
lea ecx, [esp + 0xe4]
push 0
push ecx
call fcn.0043ae80
mov edx, dword [esp + 0x44]
add esp, 0xc
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], edi
jge 0x4133a9
mov dword [esp + 0xec], ebx
jmp 0x4133b4
mov eax, dword [esp + 0x44]
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
sub ecx, edi
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
mov dword [esp + 0xf0], ecx
jl 0x4133d7
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xf4], eax
mov eax, 1
lea edx, [esp + 0xe0]
push edx
mov word [esp + 0xfc], ax
mov dword [esp + 0x100], eax
mov dword [esp + 0x244], ecx
call fcn.0041cdb0
mov ecx, dword [esp + 0x58]
xor ebx, ebx
push ebx
lea eax, [esp + 0xe4]
push eax
push ecx
mov dword [esp + 0x254], ebx
mov dword [esp + 0x258], ebx
call fcn.0041ff30
mov edi, eax
mov eax, dword [esp + 0x100]
cmp eax, ebx
je 0x41345f
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x100]
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0xfc], 0
je 0x413476
lea eax, [esp + 0xe0]
push eax
call fcn.0041cfe0
test edi, edi
jne 0x412ff3
mov ecx, dword [esp + 0x5c]
fild dword [esp + 0x3c]
mov eax, dword [esp + 0xe4]
cdq
idiv ecx
fimul dword [esp + 0x5c]
fmul qword [0x4535f0]
fst qword [esp + 0xa8]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xe8]
cdq
idiv ecx
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xec]
cdq
idiv ecx
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xf0]
cdq
idiv ecx
mov ecx, dword [0x4652f0]
test ecx, ecx
mov dword [esp + 0xd8], eax
je 0x413574
xor ebx, ebx
cmp dword [esi + 0x590], ebx
jle 0x413574
xor edi, edi
mov edx, dword [esi + 0x594]
cmp dword [edx + edi + 4], 0
lea eax, [edx + edi]
jne 0x41350e
cmp ecx, 2
jne 0x413566
mov ecx, dword [esi + 0xa10]
mov edx, dword [ecx + 0x20]
push 0
push 0
mov eax, dword [eax + 8]
push 2
push edx
mov edx, dword [esp + 0x4c]
imul edx, dword [esp + 0x6c]
push 0
lea ecx, [esp + 0xe0]
push ecx
sub esp, 0x10
lea ecx, [esp + 0x94]
fst qword [esp + 8]
fstp qword [esp]
push edx
mov edx, dword [esp + 0x5c]
push ecx
push edx
push 0xffffffffffffffff
push eax
push 0
call fcn.00424fb0
fld qword [esp + 0xe8]
mov ecx, dword [0x4652f0]
add esp, 0x40
add ebx, 1
add edi, 0xc
cmp ebx, dword [esi + 0x590]
jl 0x4134f9
mov eax, dword [esi + 0x5a4]
test eax, eax
je 0x4135db
cmp dword [esi + 0x598], 0
je 0x41358c
cmp ecx, 1
je 0x413591
cmp ecx, 2
jne 0x4135db
mov ecx, dword [esi + 0xa10]
mov edx, dword [ecx + 0x20]
push 0
push 0
push 2
push edx
mov edx, dword [esp + 0x4c]
imul edx, dword [esp + 0x6c]
push 0
lea ecx, [esp + 0xe0]
push ecx
sub esp, 0x10
lea ecx, [esp + 0x94]
fst qword [esp + 8]
fstp qword [esp]
push edx
mov edx, dword [esp + 0x5c]
push ecx
push edx
push 0xffffffffffffffff
push eax
push 0
call fcn.00424fb0
add esp, 0x40
jmp 0x4135dd
fstp st(0)
mov eax, dword [esp + 0x94]
mov edi, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x70]
push ecx
push edi
call fcn.00408330
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x412ff3
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x60]
mov edx, dword [esp + 0xa0]
add dword [esp + 0x44], edx
cmp eax, dword [esp + 0x68]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
jl 0x413090
mov eax, dword [esp + 0xa4]
add edi, dword [esp + 0x34]
cmp edi, eax
mov dword [esp + 0x40], edi
jl 0x413069
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x80]
test eax, eax
mov dword [0x464e3c], 0
je 0x413671
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x9c]
push 0x45354b
push 0xcb
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x413698
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x7c], 0
je 0x4136ac
mov edx, dword [esp + 0x58]
push edx
call fcn.0041e2d0
add esp, 4
cmp byte [esp + 0x728], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x4136c6
lea eax, [esp + 0x728]
push eax
call edi
cmp byte [esp + 0x930], 0
je 0x4136da
lea ecx, [esp + 0x930]
push ecx
call edi
mov ecx, dword [esp + 0xb3c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b76b
mov esp, ebp
pop ebp
ret