Function at 0x456534
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 6], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.0044f5d0
test al, al
je 0x456a26
fild qword [esi + 0x14c]
fcomp dword [0x456a34]
fnstsw ax
sahf
jbe 0x45659d
mov eax, dword [esi + 0x144]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x148]
mov dword [ebp - 0x1c], eax
fild qword [esi + 0x14c]
fild qword [esi + 0x144]
fsubp st(1)
fadd dword [0x456a38]
fistp qword [ebp - 0x18]
wait
jmp 0x45660d
cmp byte [esi + 0x442], 0
je 0x4565f6
mov eax, dword [esi + 0x24]
call fcn.004aef80
movsx eax, byte [esi + 0x442]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
mov dword [ebp - 0x238], eax
fild dword [ebp - 0x238]
fmulp st(1)
fistp qword [ebp - 0x20]
wait
movsx eax, byte [esi + 0x442]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
mov dword [ebp - 0x238], eax
fild dword [ebp - 0x238]
fistp qword [ebp - 0x18]
wait
jmp 0x45660d
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x14], edx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
xor eax, eax
call fcn.004adfd4
test al, al
je 0x456a26
cmp dword [ebp - 4], 0
jne 0x4566cc
mov edx, dword [0x4be538]
lea eax, [ebp - 0x234]
call fcn.004b81b0
cmp dword [ebp - 4], 0
jne 0x456664
mov eax, dword [0x4be784]
movzx eax, byte [eax + 0x188c]
mov edx, dword [0x4bef64]
mov edx, dword [edx + eax*4]
mov eax, dword [0x4be538]
call fcn.004b81b0
jmp 0x456671
mov eax, dword [0x4be538]
mov edx, dword [ebp - 4]
call fcn.004b81b0
call fcn.004ae0a4
mov al, 1
call fcn.00421294
test al, al
je 0x456a01
mov eax, dword [0x4be538]
call fcn.004b1914
test al, al
je 0x4566b9
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [0x4be538]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x456671
mov eax, dword [0x4be538]
xor edx, edx
call fcn.004b0584
test al, al
je 0x456671
mov edx, dword [0x4be538]
lea eax, [ebp - 0x134]
call fcn.004b81b0
jmp 0x4566da
lea eax, [ebp - 0x134]
mov edx, dword [ebp - 4]
call fcn.004b81b0
fld xword [0x456a3c]
fild qword [ebp - 0x18]
fcompp
fnstsw ax
sahf
jbe 0x456761
mov byte [ebp - 0x2f], 2
lea edx, [ebp - 0x2d]
lea eax, [ebp - 0x134]
call fcn.0049e868
test al, al
je 0x45670e
lea ecx, [ebp - 0x2e]
lea edx, [ebp - 0x2f]
mov al, byte [ebp - 0x2d]
call fcn.0049e43c
cmp byte [ebp - 0x2f], 1
jl 0x456761
cmp byte [ebp - 0x2f], 3
jg 0x456761
cmp byte [ebp - 0x2f], 3
sete al
and eax, 0x7f
add eax, eax
add eax, 2
mov dword [ebp - 0x238], eax
fild dword [ebp - 0x238]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ax, 0x304
call fcn.004aa600
call fcn.004ae0e4
mov eax, dword [0x4bedb0]
mov edx, 0x77
call fcn.004b12a8
test al, al
je 0x456a01
lea eax, [ebp - 0x134]
call fcn.004adcb4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x456789
lea edx, [ebp - 0x134]
mov ax, 3
call fcn.004acdac
jmp 0x456a01
push 0x10000
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4567ba
push 0
push 0x10000
call fcn.004b1e30
mov edx, eax
mov ax, 0xb
call fcn.004acdac
jmp 0x456a01
fild qword [ebp - 0x18]
fdiv dword [0x456a48]
call fcn.004028e8
cmp edx, 0
jne 0x4567d6
cmp eax, 0xc8
jbe 0x4567e5
jmp 0x4567d8
jle 0x4567e5
call fcn.00416d84
test al, al
je 0x456a01
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x10]
test al, al
je 0x456a01
cmp byte [ebp - 5], 0
je 0x456855
cmp byte [esi + 0x442], 0
jne 0x456834
fild qword [esi + 0x14c]
fcomp dword [0x456a34]
fnstsw ax
sahf
sete al
and eax, 0x7f
add ax, 0x20
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
jmp 0x456849
mov ax, 0x250
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
xor edx, edx
call fcn.004ad8ec
fild qword [ebp - 0x18]
fsub dword [0x456a38]
fdiv dword [0x456a4c]
fadd dword [0x456a38]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.004aefd0
mov dword [ebp - 0x28], eax
mov byte [ebp - 6], 1
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x45698a
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x4568a1
mov ebx, 0x10000
jmp 0x4568c0
fild qword [ebp - 0x18]
fsub dword [0x456a38]
add esp, 0xfffffff8
fistp qword [esp]
wait
push 0
push 0x10000
call fcn.004af060
mov ebx, eax
inc ebx
push ebx
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + 0x1a0]
call dword [edi + 0x18]
cmp ebx, eax
jle 0x4568e0
mov byte [ebp - 6], 0
jmp 0x45698a
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll__hwrite
cmp ebx, eax
jle 0x45690a
lea edx, [ebp - 0x134]
mov ax, 5
call fcn.004acdac
mov byte [ebp - 6], 0
jmp 0x45698a
cmp byte [ebp - 5], 0
je 0x456969
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x23c], eax
fild qword [ebp - 0x240]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x248], eax
xor eax, eax
mov dword [ebp - 0x244], eax
fild qword [ebp - 0x248]
fdivp st(1)
fmul dword [0x456a50]
call fcn.004028e8
mov edx, dword [0x4be344]
mov byte [edx], al
mov eax, dword [0x4be344]
mov al, byte [eax]
mov edx, dword [0x4be8d0]
cmp al, byte [edx]
je 0x456969
call fcn.004b5c48
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
je 0x45697e
mov byte [ebp - 6], 0
jmp 0x45698a
inc dword [ebp - 0x24]
dec dword [ebp - 0x34]
jne 0x456892
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x14]
mov eax, dword [0x4bed48]
cmp byte [eax], 0
je 0x4569e1
cmp byte [ebp + 8], 0
je 0x4569d3
lea eax, [ebp - 0x134]
call fcn.004aed10
push eax
mov ax, 0x11b
call fcn.004aa600
mov ecx, 2
pop edx
call fcn.004b12b8
cmp al, 1
jne 0x4569ec
lea eax, [ebp - 0x134]
push eax
call sub.kernel32.dll_DeleteFileA_1
jmp 0x456a01
cmp byte [ebp - 5], 0
je 0x4569ec
call fcn.004adbe0
cmp dword [ebp - 4], 0
jne 0x456a01
push 0
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0044c078
cmp dword [ebp - 0xc], 0
je 0x456a10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalFree
cmp dword [ebp - 4], 0
jne 0x456a26
lea edx, [ebp - 0x234]
mov eax, dword [0x4be538]
call fcn.004b81b0
mov al, byte [ebp - 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4