Function at 0x41c540
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45b8cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
push eax
mov dword [edi + 4], ebx
lea ebp, [edi + 0x50]
call fcn.004050d0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov byte [esp + 0x90], 1
mov byte [edi + 0x54], bl
mov byte [edi + 0x55], bl
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c5b3
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x58], eax
mov byte [esp + 0x90], 2
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c5e4
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x5c], eax
mov byte [esp + 0x90], 3
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c615
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x60], eax
mov byte [esp + 0x90], 4
mov byte [edi + 0x64], bl
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c649
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x68], eax
mov byte [esp + 0x90], 5
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41c67a
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x6c], eax
lea esi, [edi + 0x70]
push 0xa
mov ecx, esi
mov byte [esp + 0x94], 6
call fcn.0042b3cb
mov dword [esi + 0x1c], ebx
lea ecx, [edi + 0x90]
mov byte [esp + 0x90], 7
call fcn.0043422f
push str.Datos
lea ecx, [esp + 0x18]
push ebp
push ecx
mov byte [esp + 0x9c], 8
call fcn.00404360
add esp, 0xc
push eax
lea ecx, [edi + 0x60]
mov byte [esp + 0x94], 9
call fcn.00405000
mov byte [esp + 0x90], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.BORRADA
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.00404360
add esp, 0xc
push eax
lea ecx, [edi + 0x58]
mov byte [esp + 0x94], 0xa
call fcn.00405000
mov byte [esp + 0x90], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Remitente
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.00404360
add esp, 0xc
push eax
lea ecx, [edi + 0x5c]
mov byte [esp + 0x94], 0xb
call fcn.00405000
mov byte [esp + 0x90], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c79f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebp, [edi + 8]
lea esi, [esp + 0x14]
mov byte [edi + 0x31], 1
mov byte [edi + 0x2f], bl
mov byte [edi + 0x30], bl
mov dword [edi + 0xc], 0x64
mov dword [ebp], 0x64
mov dword [edi + 0x10], 0x12c
mov dword [edi + 0x14], 0xc8
mov dword [edi + 0x34], ebx
mov dword [edi + 0x18], 0xade8bf
mov dword [edi + 0x1c], 0x99caa8
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x28], 0xff0000
mov byte [edi + 0x2e], 1
mov byte [edi + 0x3a], bl
mov byte [edi + 0x39], bl
mov byte [edi + 0x38], bl
call fcn.00405800
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x60]
push 0x46a254
mov dword [edi + 0x48], ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0043eed6
add esp, 0xc
test eax, eax
je 0x41c83a
mov edx, dword [esp + 0x9c]
push edx
call fcn.0043ef29
add esp, 4
mov esi, edi
call fcn.0041d2f0
jmp 0x41c89a
mov eax, dword [esp + 0x10]
push eax
push 1
push 0x48
push ebp
call fcn.0043f1fb
mov ecx, dword [esp + 0x20]
push ecx
push 0x32
lea edx, [esp + 0x34]
push 2
push edx
call fcn.0043f1fb
add esp, 0x20
xor ecx, ecx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41c870
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [edi + 0x68]
call fcn.00405350
mov eax, dword [esp + 0x10]
push eax
call fcn.0043f28f
add esp, 4
mov eax, dword [edi + 0x58]
push ebx
push eax
call fcn.0043ec84
add esp, 8
test eax, eax
je 0x41c8d6
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.0041d350
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c8d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0041d080
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c90a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret 8