Function at 0x548160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xd50
mov ecx, dword [eax]
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
mov esi, 1
push esi
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x2c], ebx
call eax
cmp dword [esp + 0x18], ebx
je 0x548567
mov ecx, dword [esp + 0xd6c]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x3c], bl
call fcn.00481440
lea edx, [esp + 0x2c]
push edx
call fcn.005550a0
cmp byte [esp + 0x3c], bl
jne 0x5483b0
jmp 0x5481d0
mov edi, dword [esp + 0xd80]
lea eax, [esp + 0x14]
push eax
push 0x10
mov dword [esp + 0x1c], ebx
call edi
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x54854a
cmp eax, ebx
jl 0x54854a
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x14]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x14]
mov dword [edx], esi
mov eax, dword [esp + 0x14]
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], 5
mov eax, dword [esp + 0x14]
lea edx, [eax + 0xc]
mov eax, dword [eax + 8]
push edx
shl eax, 4
push eax
call edi
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xc], ebx
je 0x548542
cmp eax, ebx
jl 0x548542
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
shl edx, 4
push edx
push ebx
push eax
call fcn.006a1300
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov edx, dword [ecx + 0xc]
add esp, 0xc
cmp edi, ebx
mov dword [edx], 0x3001001f
mov eax, edi
jne 0x54827f
mov eax, 0x6bc0cc
cmp edi, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x10], 0xc150003
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [eax + 0x18], esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + 0x20], 0x3002001f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x28], str.SMTP
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [eax + 0x30], 0x3003001f
mov eax, edi
jne 0x5482d6
mov eax, 0x6bc0cc
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + 0x38], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ecx + 0x40], 0xfff0102
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [eax + 0x4c], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + 0x48], ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea esi, [eax + 0x4c]
push esi
lea esi, [eax + 0x48]
push esi
mov esi, dword [eax + 0x38]
push SysReAllocStringLen
push esi
mov esi, dword [eax + 0x28]
mov eax, dword [eax + 8]
push esi
push eax
push ecx
mov ecx, dword [edx + 0x48]
call ecx
mov esi, eax
cmp esi, ebx
jl 0x548366
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push ebx
push ebx
push ebx
push eax
call edx
mov esi, eax
cmp esi, ebx
jl 0x548366
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xd64]
mov ecx, dword [eax]
push edx
push 2
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov esi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x4c]
cmp eax, ebx
mov ebp, dword [esp + 0xd84]
je 0x54837e
push eax
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
cmp esi, ebx
jl 0x54853f
lea eax, [esp + 0x2c]
push eax
call fcn.005550a0
cmp byte [esp + 0x3c], bl
mov esi, 1
je 0x5481d0
mov eax, dword [esp + 0x30]
push eax
call fcn.0069c8fa
add esp, 4
push 0xa0
lea ecx, [esp + 0x84]
push ebx
push ecx
call fcn.006a1300
mov ebp, dword [esp + 0xd88]
mov edx, dword [esp + 0xd80]
mov eax, dword [esp + 0xd7c]
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0x80], 0x1000001f
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], 0x37001f
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], 0x170003
mov dword [esp + 0xa8], esi
mov dword [esp + 0xb0], 0xe070003
mov dword [esp + 0xb8], 5
jbe 0x548443
mov dword [esp + 0xb8], 0x15
mov eax, dword [esp + 0xd68]
xor ecx, ecx
cmp ecx, ebp
sbb edx, edx
neg edx
mov word [esp + 0xc8], dx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x70]
push edx
push ebx
lea edx, [esp + 0x68]
lea edi, [ecx + 0xa]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0xd4], 0xe1b000b
mov dword [esp + 0xe4], 0x3a40000b
mov word [esp + 0xec], bx
mov dword [esp + 0xf4], 0x59090003
mov dword [esp + 0xfc], esi
mov dword [esp + 0x104], 0x1a001f
mov dword [esp + 0x10c], str.IPM.Note
mov dword [esp + 0x114], 0x3fde0003
mov dword [esp + 0x11c], 0xfde9
mov dword [esp + 0x130], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], 0x35e40102
mov dword [esp + 0x38], ebx
call eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x548576
lea ecx, [esp + 0x11c]
mov dword [esp + 0x110], 0xe0a0102
mov eax, dword [eax + 8]
push ecx
push eax
mov dword [esp + 0x120], eax
call dword [esp + 0xd88]
test eax, eax
jl 0x548576
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [esp + 0x120]
push ecx
push edx
call fcn.006a4bd0
add esp, 0xc
jmp 0x54857b
push edi
jmp 0x54854f
push ecx
call dword [esp + 0xd88]
mov eax, dword [esp + 0x30]
push eax
call fcn.0069c8fa
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x548567
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd50
ret 0x24
mov edi, 9
mov esi, dword [esp + 0xd64]
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebx
lea ecx, [esp + 0x84]
push ecx
push edi
push esi
call edx
mov edi, eax
mov eax, dword [esp + 0x11c]
cmp eax, ebx
je 0x5485a9
push eax
call dword [esp + 0xd88]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x5485b9
push eax
call dword [esp + 0xd88]
cmp edi, ebx
jl 0x548557
lea eax, [esp + 0x1c]
push eax
push 0xc
mov dword [esp + 0x4c], 0x62008
mov word [esp + 0x50], bx
mov word [esp + 0x52], bx
mov byte [esp + 0x54], 0xc0
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], bl
mov byte [esp + 0x5b], 0x46
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call dword [esp + 0xd88]
test eax, eax
jne 0x548557
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ebx
mov edx, dword [esp + 0x1c]
mov dword [edx + 8], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
mov dword [ecx], eax
mov edx, dword [esp + 0x1c]
mov dword [edx + 4], ebx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
mov dword [eax + 8], 0x8582
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x34]
push 2
lea eax, [esp + 0x24]
push eax
push 1
push esi
call ecx
test eax, eax
je 0x54868c
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x548669
push eax
call dword [esp + 0xd88]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x548567
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd50
ret 0x24
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x548557
mov eax, dword [eax + 4]
mov ecx, dword [esi]
push ebx
and eax, 0xffff000b
lea edx, [esp + 0x74]
push edx
or eax, 0xb
push 1
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x20]
push esi
mov word [esp + 0x88], bx
call eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x5486cf
push eax
call dword [esp + 0xd88]
mov ecx, dword [esp + 0x28]
push ecx
call dword [esp + 0xd88]
xor edi, edi
cmp ebp, ebx
mov dword [esp + 0x40], edi
jbe 0x5488a2
lea esp, [esp]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
push ebx
push ebx
push esi
mov dword [esp + 0x28], ebx
call edx
cmp dword [esp + 0x14], ebx
je 0x548893
mov ebp, dword [esp + 0xd78]
mov edx, dword [ebp + edi*4]
lea esi, [esp + 0x150]
mov dword [esp + 0x120], 0x37050003
mov dword [esp + 0x128], 1
call fcn.004ad160
push 0x104
lea eax, [esp + 0x35c]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0x358]
mov dword [esp + 0x138], edx
push ebx
mov eax, esi
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x124]
push edx
mov dword [esp + 0x138], 0x3704001f
mov dword [esp + 0x148], 0x3707001f
mov ecx, dword [eax]
push 3
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 3
push ebx
push 0x6b904c
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push 0x37010102
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [esp + 0x20], ebx
je 0x54886b
mov edi, dword [ebp + edi*4]
push 3
push 1
push SysReAllocStringLen
push edi
mov eax, 0x3e8
call fcn.004abf70
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x58], edi
je 0x5488c1
lea ecx, [esp + 0x58]
call fcn.00401c30
mov ebp, eax
cmp ebp, ebx
jbe 0x548847
jmp 0x548800
cmp ebp, 0x800
mov esi, 0x800
ja 0x54880f
mov esi, ebp
push ebx
lea ecx, [esp + 0x6c]
push ecx
push esi
lea edx, [esp + 0x56c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x54]
push edx
push esi
lea edx, [esp + 0x568]
mov dword [esp + 0x5c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
sub ebp, esi
jne 0x548800
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push ebx
push eax
call edx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push 4
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebp, dword [esp + 0xd7c]
mov esi, dword [esp + 0xd64]
add edi, 1
cmp edi, ebp
mov dword [esp + 0x40], edi
jb 0x5486f0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5488b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xd50
ret 0x24
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x548557