Function at 0x5499c0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e44a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0xffffffff
je 0x549c4b
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 6
lea edx, [esp + 0x38]
push edx
push ebx
mov dword [esp + 0x28], ebp
call esi
test eax, eax
je 0x549c44
cmp dword [esp + 0x14], 6
jne 0x549c44
cmp word [esp + 0x2e], 1
jne 0x549c44
mov ax, word [esp + 0x30]
cmp ax, bp
je 0x549c44
movzx eax, ax
shl eax, 4
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
cmp edi, ebp
je 0x549c44
movzx edx, word [esp + 0x30]
push ebp
lea ecx, [esp + 0x18]
push ecx
shl edx, 4
push edx
push edi
push ebx
call esi
test eax, eax
je 0x549c3a
movzx eax, word [esp + 0x30]
mov ecx, eax
shl ecx, 4
cmp dword [esp + 0x14], ecx
jne 0x549c3a
cmp eax, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], ebp
jle 0x549c11
add edi, 8
lea esp, [esp]
cmp word [edi - 2], 0x20
jne 0x549bc1
movzx edx, byte [edi - 8]
mov eax, dword [esp + 0x58]
cmp edx, eax
je 0x549adf
cmp eax, ebp
jne 0x549bc1
mov eax, dword [edi + 4]
push ebp
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x549bc1
mov ecx, dword [edi]
push ecx
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x549bc1
push ebp
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebp
mov eax, dword [edi]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
je 0x549bb7
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edi]
jne 0x549bb7
cmp word [esi + 0xe], 0x20
jne 0x549bb7
lea ecx, [esp + 0x34]
call sub.mfc90u.dll_CDC::CDC
push ebp
mov dword [esp + 0x50], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call sub.mfc90u.dll_CDC::Attach
mov eax, dword [esi + 8]
cdq
sub eax, edx
mov edx, dword [esi + 4]
sar eax, 1
imul edx, eax
push ebp
mov dword [esi + 8], eax
push ebp
lea eax, [esp + 0x20]
push eax
add edx, edx
add edx, edx
push ebp
mov dword [esi + 0x14], edx
mov ecx, dword [esp + 0x48]
push esi
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x549b96
cmp ebx, ebp
jne 0x549bdc
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xffffffff
call fcn.005df384
mov ebx, dword [esp + 0x20]
jmp 0x549bc1
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
movzx edx, word [esp + 0x30]
inc eax
add edi, 0x10
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x549ac0
jmp 0x549c0d
mov ecx, dword [esi + 0x14]
push ecx
lea edx, [esi + 0x28]
push edx
push eax
call fcn.0051b230
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xffffffff
call fcn.005df384
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret