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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb34
mov eax, dword [0x4630b0]
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 [0x464bc0]
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 0x412e8e
mov edx, dword [ebp + 0x10]
push edx
push eax
push edi
call fcn.0040c2e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb30]
xor ecx, esp
call fcn.0043b3fc
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], ebx
mov byte [esp + 0x930], bl
mov byte [esp + 0x728], bl
je 0x412ebe
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 0x412eb0
jmp 0x412f18
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x147
push 0xcc
push edi
call ebx
test eax, eax
jge 0x412f00
push 0x8b
call fcn.0040ae20
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb30]
xor ecx, esp
call fcn.0043b3fc
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.004087a0
add esp, 8
test eax, eax
je 0x412f3a
mov dword [esp + 0x64], 1
jmp 0x4138f1
mov eax, dword [0x4652cc]
mov cx, word [ebp + 0x10]
mov word [eax + 0x36], cx
mov edx, dword [0x4652cc]
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 0x412f73
mov dword [esp + 0x64], 1
jmp 0x4138f1
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 0x413034
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 0x4130aa
fld qword [esi + 0x9d8]
jmp 0x4130ac
xor edx, edx
cmp dword [0x4652ac], edx
je 0x413060
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 0x413072
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 0x413018
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 0x4130a2
mov dword [esp + 0x3c], edi
jmp 0x4130c1
mov edi, eax
mov dword [esp + 0x3c], edi
jmp 0x4130c1
fld1
fxch st(1)
fmul qword [0x4539c0]
fdivrp st(1)
call fcn.0043b410
mov edi, eax
mov dword [esp + 0x3c], eax
cmp edi, 0x100
jle 0x4131ff
cmp dword [esi], 9
jne 0x4131ff
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.0041f930
add esp, 8
test eax, eax
jne 0x41329d
lea edx, [esp + 0x258]
cmp dword [esp + 0x58], edx
jne 0x413164
mov eax, dword [esp + 0x58]
push eax
call fcn.0041e590
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.0041e220
add esp, 8
test eax, eax
jne 0x41329d
lea ecx, [esp + 0x728]
cmp dword [esp + 0x34], ecx
mov dword [esp + 0x7c], 1
jne 0x4131a9
lea edx, [esp + 0x930]
mov dword [esp + 0x34], edx
jmp 0x4131b4
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 0x413130
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 0x4132ab
mov esi, 1
jmp 0x4138f5
mov dword [esp + 0x50], ebx
mov esi, 1
jmp 0x4138f5
push 0x7f02
push 0
mov dword [0x464dfc], 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 0x4138e6
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 0x4138d6
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 0x465158
push 0x70
mov dword [esp + 0xa8], eax
call fcn.00406330
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 0x413293
mov eax, dword [esi]
cmp eax, 0x1e
jne 0x41345a
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 0x4133c1
mov ecx, eax
mov eax, dword [esp + 0x44]
cmp ebx, eax
jge 0x4133cb
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.0040e260
add esp, 0x1c
test eax, eax
jne 0x413293
push 0x174
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.0043b0e0
mov ecx, dword [esp + 0x44]
add esp, 0xc
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edi
jge 0x413428
mov dword [esp + 0xec], ebx
jmp 0x413433
mov edx, dword [esp + 0x44]
mov dword [esp + 0xec], edx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xa8]
cmp ecx, eax
jge 0x41344e
mov dword [esp + 0xf0], ecx
jmp 0x41371e
mov dword [esp + 0xf0], eax
jmp 0x41371e
cmp eax, 0x1a
jne 0x4134fe
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 0x4134c2
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 0x4134de
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.00412820
jmp 0x41359d
cmp eax, 0x1b
jne 0x413611
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 0x413566
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 0x413582
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.00427bd0
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 0x41371e
push 0x174
lea ecx, [esp + 0xe4]
push 0
push ecx
call fcn.0043b0e0
mov edx, dword [esp + 0x44]
add esp, 0xc
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], edi
jge 0x413649
mov dword [esp + 0xec], ebx
jmp 0x413654
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 0x413677
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.0041d070
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.004201f0
mov edi, eax
mov eax, dword [esp + 0x100]
cmp eax, ebx
je 0x4136ff
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 0x413716
lea eax, [esp + 0xe0]
push eax
call fcn.0041d2a0
test edi, edi
jne 0x413293
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 [0x4652b0]
test ecx, ecx
mov dword [esp + 0xd8], eax
je 0x413814
xor ebx, ebx
cmp dword [esi + 0x590], ebx
jle 0x413814
xor edi, edi
mov edx, dword [esi + 0x594]
cmp dword [edx + edi + 4], 0
lea eax, [edx + edi]
jne 0x4137ae
cmp ecx, 2
jne 0x413806
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.00425210
fld qword [esp + 0xe8]
mov ecx, dword [0x4652b0]
add esp, 0x40
add ebx, 1
add edi, 0xc
cmp ebx, dword [esi + 0x590]
jl 0x413799
mov eax, dword [esi + 0x5a4]
test eax, eax
je 0x41387b
cmp dword [esi + 0x598], 0
je 0x41382c
cmp ecx, 1
je 0x413831
cmp ecx, 2
jne 0x41387b
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.00425210
add esp, 0x40
jmp 0x41387d
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.004085e0
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x413293
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 0x413330
mov eax, dword [esp + 0xa4]
add edi, dword [esp + 0x34]
cmp edi, eax
mov dword [esp + 0x40], edi
jl 0x413309
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 [0x464dfc], 0
je 0x413911
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 0x413938
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x7c], 0
je 0x41394c
mov edx, dword [esp + 0x58]
push edx
call fcn.0041e590
add esp, 4
cmp byte [esp + 0x728], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x413966
lea eax, [esp + 0x728]
push eax
call edi
cmp byte [esp + 0x930], 0
je 0x41397a
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.0043b3fc
mov esp, ebp
pop ebp
ret