Function at 0x4a9d80
Capabilities:
Create thread
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x4ed0fc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], edi
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x34]
cmp eax, edi
jne 0x4a9e75
mov eax, dword [ebp - 0x24]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a9e16
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a9e1c
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
jmp 0x4a9e1c
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x28]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a9e45
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a9e45
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a9e6e
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4a9e6e
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
xor eax, eax
jmp 0x4aa7a5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [ebp - 0x24]
call fcn.00406780
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [0x4ed0fc]
mov edx, str.file:
test edx, edx
mov dword [ebp - 0x20], ecx
je 0x4a9ed9
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x4a9ed9
push esi
lea ecx, [ebp - 0x20]
call fcn.00406580
cmp eax, edi
je 0x4a9ed9
mov eax, dword [ebp - 0x20]
inc esi
push esi
push str.file:
push eax
call fcn.004157c0
add esp, 0xc
lea ecx, [ebp - 0x20]
push 0xffffffffffffffff
call fcn.0040f9d0
lea ecx, [ebp - 0x1c]
push 5
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0040fc10
mov edx, dword [ebp - 0x20]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
mov edx, dword [0x4ed100]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
sete bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a9f31
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a9f37
mov edx, dword [ebp - 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
jmp 0x4a9f37
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a9f64
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a9f64
mov edx, dword [ebp - 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
test bl, bl
je 0x4a9fae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
mov dword [ebp - 0x2c], 1
je 0x4aa109
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4a9f91
mov edx, dword [0x4ed100]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4a9f9c
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4aa0f1
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00406780
jmp 0x4aa109
mov eax, str.WorldMail
test eax, eax
je 0x4a9fc2
push str.WorldMail
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.WorldMail
push eax
lea ecx, [ebp - 0x14]
call fcn.00406780
mov edx, dword [0x4ed0fc]
mov eax, str.file:
test eax, eax
mov dword [ebp - 0x1c], edx
je 0x4aa019
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4aa019
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406580
test eax, eax
je 0x4aa019
mov ecx, dword [ebp - 0x1c]
inc esi
push esi
push str.file:
push ecx
call fcn.004157c0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
call fcn.0040f9d0
lea edx, [ebp - 0x18]
push 5
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0040fc10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ecx
push eax
mov byte [ebp - 4], 8
call edi
add esp, 8
test eax, eax
je 0x4aa1fb
mov edx, dword [0x4ed0fc]
mov eax, str.http:
test eax, eax
mov dword [ebp - 0x20], edx
je 0x4aa092
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4aa092
push esi
lea ecx, [ebp - 0x20]
call fcn.00406580
test eax, eax
je 0x4aa092
mov ecx, dword [ebp - 0x20]
inc esi
push esi
push str.http:
push ecx
call fcn.004157c0
add esp, 0xc
lea ecx, [ebp - 0x20]
push 0xffffffffffffffff
call fcn.0040f9d0
lea edx, [ebp - 0x44]
push 5
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0040fc10
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
push ecx
push eax
call edi
mov ecx, dword [0x4ed100]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x44]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4aa1c6
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa1cc
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
jmp 0x4aa1cc
lea ecx, [ebp - 0x14]
call fcn.00406610
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [ebp - 0x1c]
push 8
push edx
lea ecx, [ebp - 0x14]
call fcn.0040fa60
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 6
je 0x4aa167
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4aa13a
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4aa141
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4aa150
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406780
jmp 0x4aa167
lea ecx, [ebp - 0x14]
call fcn.00406610
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa194
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4aa194
mov edx, dword [ebp - 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
lea ecx, [ebp - 0x14]
xor ebx, ebx
call fcn.00406680
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
mov ecx, dword [eax - 8]
lea esi, [eax + ecx*2]
cmp eax, esi
jae 0x4a9fd0
cmp word [eax], 0x2f
jne 0x4aa1c1
mov word [eax], 0x5c
inc ebx
push eax
call edi
jmp 0x4aa1ad
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebp - 0x20]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa1f5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa1f5
mov edx, dword [ebp - 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
test bl, bl
jne 0x4aa201
jmp 0x4aa203
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov bl, 1
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa22c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa22c
mov edx, dword [ebp - 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa259
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4aa259
mov edx, dword [ebp - 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
test bl, bl
je 0x4aa417
mov eax, dword [0x4ed0fc]
mov ecx, 0x4feaa0
test ecx, ecx
mov dword [ebp - 0x1c], eax
je 0x4aa2a9
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4aa2a9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00406580
test eax, eax
je 0x4aa2a9
mov edx, dword [ebp - 0x1c]
inc esi
push esi
push 0x4feaa0
push edx
call fcn.004157c0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push 0xffffffffffffffff
call fcn.0040f9d0
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004417b0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
push ecx
push eax
call edi
mov ecx, dword [0x4ed100]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x18]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4aa2f9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4aa2f9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x1c]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa32a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4aa32a
mov edx, dword [ebp - 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
test bl, bl
je 0x4aa3c7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040fc10
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 0xb
je 0x4aa396
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4aa369
mov edx, dword [0x4ed100]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4aa370
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4aa37f
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00406780
jmp 0x4aa396
lea ecx, [ebp - 0x14]
call fcn.00406610
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4ed100]
mov byte [ebp - 4], 4
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4aa3c7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4aa3c7
mov edx, dword [ebp - 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [ebp - 0x14]
push 0x2f
push eax
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x4aa3df
or eax, 0xffffffff
jmp 0x4aa3e4
sub eax, dword [ebp - 0x14]
sar eax, 1
inc eax
lea ecx, [ebp - 0x18]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040fa60
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040f740
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406750
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.004ab300
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push edx
call fcn.0040f740
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4aa4ec
push str..htm0
lea ecx, [ebp - 0x18]
call fcn.00481240
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xd
call fcn.00444170
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406750
push str..html
lea ecx, [ebp - 0x18]
call fcn.00481240
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
push ecx
lea ecx, [ebp - 0x28]
call fcn.00444170
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406750
lea edx, [ebp - 0x244]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x244]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00443ef0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xf
call fcn.0040f740
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406750
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x244]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00443ef0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.0040f740
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406750
push 0x2f
lea ecx, [ebp - 0x24]
call fcn.004ab2d0
inc eax
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040fc10
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.0040f740
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406750
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 3
test eax, eax
jne 0x4aa6d9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov edx, dword [eax]
push ecx
push eax
mov byte [ebp - 4], 0x13
call dword [edx + 0x48]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4aa59a
mov edx, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push 0x4dfa28
push eax
call dword [edx]
test eax, eax
jl 0x4aa59a
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push ecx
push 0x4dfb28
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x4aa59a
mov eax, dword [ebp - 0x38]
push 0
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
jmp 0x4aa59a
mov dword [ebp - 4], 3
push esi
mov byte [ebp - 4], 0x15
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4aa5b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4aa5c6
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4aa5d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__wfopen]
push 0x4ede94
push edx
mov dword [ebp - 4], 3
call edi
mov esi, eax
mov eax, dword [ebp - 0x28]
push 0x4ef214
push eax
call edi
add esp, 0x10
mov edi, eax
test esi, esi
mov dword [ebp + 8], edi
je 0x4aa6c1
test edi, edi
je 0x4aa6b7
mov ebx, dword [sym.imp.MSVCRT.dll_fputs]
push edi
push str._BASE_HREF_
call ebx
mov eax, dword [ebp - 0x24]
add esp, 8
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x4aa633
jmp 0x4aa659
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004d4ce0
mov ecx, dword [ebp - 0x18]
mov eax, esp
push 0
push edi
push ecx
push eax
call fcn.004ab2a0
mov edi, dword [ebp + 8]
push edi
push eax
call ebx
push edi
push 0x4fea7c
call ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
push esi
mov ebx, eax
push 1
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [ebp + 8]
add esp, 0x40
push edx
push 1
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [ebp + 8]
add esp, 0x14
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test edi, edi
je 0x4aa6cf
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x20c
mov byte [ebp - 4], 0x17
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x82
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [esi + 0x208], ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x4ed128
push 0x103
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0
push 0
push esi
push 0x4a9c50
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x28
mov edi, eax
xor esi, esi
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4aa74a
mov esi, 1
jmp 0x4aa779
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4aa779
mov esi, 1
jmp 0x4aa779
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.00406750
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00406750
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00406750
mov eax, esi
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x250]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret