Function at 0x443640
Capabilities:
Delete file
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], edx
mov edx, dword [0x468ec0]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
push ebx
mov ebx, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x44], edx
test esi, esi
je 0x4436a4
push ecx
push 1
push esi
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4436bb
xor eax, eax
test esi, esi
je 0x4436bb
mov ecx, dword [esp + 0x44]
mov edi, edi
cmp byte [eax + ecx], 0x20
jne 0x4436d2
inc eax
cmp eax, esi
jb 0x4436b0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
jle 0x44396a
mov dword [esp + 0x48], edi
lea edi, [ebx + 2]
mov ebx, dword [sym.imp.MSVCR100.dll_strncpy]
jmp 0x4436f8
mov ecx, dword [esp + 0x44]
movzx eax, word [edi + 2]
test ax, ax
je 0x443954
jns 0x44392c
cmp dword [0x476bc4], 0
je 0x443898
movsx eax, word [edi]
mov edx, dword [edi + 0x12]
add edx, dword [esp + 0x44]
push eax
lea esi, [esp + 0x64]
call fcn.0040b5c0
movsx eax, word [edi + 2]
add esp, 4
cmp eax, 0xfffffffe
je 0x443747
cmp eax, 0xffffffff
jne 0x44374f
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], ecx
jmp 0x44374f
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x58], edx
fld qword [esp + 0x60]
sub esp, 8
fadd qword [0x466d60]
fstp qword [esp]
call sub.MSVCR100.dll_floor
mov eax, dword [esp + 0x60]
fst qword [eax]
add esp, 8
fcomp qword [0x4802c0]
fnstsw ax
test ah, 0x41
jne 0x443954
push str.ID_must_be_no_more_than_12_digits_long_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x44380d
cmp dword [0x489ad0], 0
je 0x44380d
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x4437e0
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [0x489ad0]
add esp, 4
push edx
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x4437fe
mov edx, dword [0x489ad0]
push str.__body___html__n
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
mov edx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edx
call esi
mov eax, dword [0x4899d8]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802bc]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802cc]
add esp, 4
push edx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x443890
call fcn.00409900
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x489b34]
mov edx, dword [0x489b30]
mov dword [esp + 0x70], eax
mov al, byte [0x489b3c]
mov dword [esp + 0x6c], edx
mov edx, dword [0x489b38]
mov byte [esp + 0x78], al
mov dword [esp + 0x74], edx
movzx eax, word [edi]
cmp ax, 0xc
cwde
jl 0x4438cd
mov eax, 0xc
mov edx, dword [edi + 0x12]
push eax
add edx, ecx
push edx
lea eax, [esp + 0x74]
push eax
call ebx
add esp, 0xc
mov eax, 0xc
lea esi, [esp + 0x6c]
call fcn.00409670
movsx eax, word [edi + 2]
cmp eax, 0xfffffffe
je 0x443910
cmp eax, 0xffffffff
jne 0x443954
mov edx, dword [esp + 0x50]
mov ecx, esi
mov eax, esi
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x443904
jmp 0x443954
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x6c]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x443920
jmp 0x443954
movsx edx, word [edi]
push edx
mov edx, dword [edi + 0x12]
add edx, dword [esp + 0x48]
lea esi, [esp + 0x64]
call fcn.0040b5c0
mov eax, dword [esp + 0x4c]
fld qword [esp + 0x64]
add esp, 4
fstp qword [eax]
add eax, 8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
inc eax
add edi, 0x1c
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x54]
jl 0x4436f4
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045d089
mov esp, ebp
pop ebp
ret