Function at 0x411490
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f04b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5b5be8]
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 eax, dword [ebp + 8]
mov esi, edx
mov edx, dword [0x5be5ac]
mov dword [ebp - 0x244], eax
mov eax, dword [0x5be5a8]
mov dword [ebp - 0x238], ecx
mov ecx, dword [0x5be5a4]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x24c], ecx
call fcn.004111b0
push 0x58dc44
lea edx, [ebp - 0x230]
push str.corrupted.txt
xor ebx, ebx
push edx
mov dword [ebp - 0x230], ebx
call fcn.00534419
mov eax, dword [ebp - 0x230]
add esp, 0xc
cmp eax, ebx
je 0x411683
push eax
call fcn.00534335
add esp, 4
test eax, eax
jne 0x411663
lea ecx, [ecx]
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.00535390
mov ecx, dword [ebp - 0x230]
push ecx
lea edx, [ebp - 0x210]
push 0x200
push edx
call fcn.005345c5
add esp, 0x18
test eax, eax
je 0x411663
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411584
sub eax, edx
mov esi, eax
cmp esi, ebx
je 0x4115b5
lea edi, [ebp - 0x210]
lea esp, [esp]
movsx eax, byte [edi + esi - 1]
push eax
call fcn.0054aa93
add esp, 4
test eax, eax
je 0x4115b5
dec esi
jne 0x4115a0
mov byte [ebp + esi - 0x210], bl
lea ebx, [ebp - 0x210]
call fcn.004227f0
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4115d0
sub eax, edx
je 0x41164a
xor ebx, ebx
mov edi, eax
lea eax, [ebp - 0x210]
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
call fcn.00409b10
mov ecx, esi
mov edi, 0x5be75c
mov dword [ebp - 4], ebx
call fcn.0040b650
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x218], 0x10
jb 0x411634
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
mov edx, dword [ebp - 0x230]
push edx
call fcn.00534335
add esp, 4
xor ebx, ebx
test eax, eax
je 0x411540
mov eax, dword [ebp - 0x230]
push eax
call fcn.005347c7
add esp, 4
push str.corrupted.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0x248]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411688
sub eax, edx
mov edi, eax
mov eax, esi
mov esi, 0x5be6d0
call fcn.00409b10
mov esi, dword [ebp - 0x244]
mov eax, esi
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4116b0
sub eax, ecx
mov edi, eax
mov eax, esi
mov esi, 0x5be6ec
call fcn.00409b10
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
mov dword [0x5be72c], eax
mov eax, esi
mov dword [0x5be724], ecx
mov dword [0x5be728], edx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4116f5
sub eax, ecx
mov edi, eax
mov eax, esi
mov esi, 0x5be6b0
call fcn.00409b10
mov ecx, dword [ebp + 0xc]
mov dword [0x5be6cc], ecx
mov byte [0x5be780], bl
mov dword [0x5be740], 1
call fcn.004112f0
lea edx, [ebp - 0x23c]
push edx
push ebx
push 0x5be6a0
push 0x40e8d0
push ebx
push ebx
mov dword [ebp - 0x23c], ebx
call fcn.00534525
add esp, 0x18
mov al, 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.005320a3
mov esp, ebp
pop ebp
ret 8