Function at 0x41d080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push esi
push edi
push 0xa
lea ecx, [esp + 0x28]
call fcn.0042b3cb
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov edi, dword [ebp + 8]
push str.Alarmas
lea esi, [edi + 0x50]
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x2b0], ebx
call fcn.00404360
mov eax, dword [eax]
add esp, 0xc
push 0x46a254
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0043eed6
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x10]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d111
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], bl
je 0x41d28c
mov ecx, dword [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x24]
push 4
push edx
mov byte [edi + 0x55], 1
mov dword [esp + 0x2c], ebx
call fcn.0043f1fb
add esp, 0x10
cmp dword [esp + 0x1c], ebx
jle 0x41d27f
push str.Alarmas
lea eax, [esp + 0x14]
push esi
push eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.00404360
add esp, 0xc
lea ecx, [esp + 0x68]
mov byte [esp + 0x2a4], 1
mov eax, dword [eax]
push ecx
push eax
call fcn.00438a35
mov esi, eax
mov byte [esp + 0x2a4], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d1b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x41d27f
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
push ebx
add ecx, 0xfffffffc
push 0x28
adc edx, 0xffffffff
push edx
push ecx
call fcn.00444480
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, ecx
mov edi, edx
cdq
cmp esi, eax
jne 0x41d27c
cmp edi, edx
jne 0x41d27c
cmp ecx, ebx
mov dword [esp + 0x10], ebx
jle 0x41d26c
mov edi, edi
mov eax, dword [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x4c]
push 0x24
push ecx
call fcn.0043f1fb
mov edx, dword [esp + 0x28]
push edx
push 1
mov esi, eax
lea eax, [esp + 0x38]
push 4
push eax
call fcn.0043f1fb
add esi, eax
add esp, 0x20
cmp esi, 2
jne 0x41d25b
lea eax, [esp + 0x44]
call fcn.00429ec0
cmp dword [esp + 0x20], eax
jne 0x41d25b
lea edi, [esp + 0x44]
call fcn.004014e0
test eax, eax
jne 0x41d25b
mov ecx, edi
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004059d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41d200
cmp dword [esp + 0x30], ecx
jne 0x41d27c
mov eax, dword [ebp + 8]
mov byte [eax + 0x55], bl
mov edi, eax
jmp 0x41d27f
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f28f
add esp, 4
lea eax, [esp + 0x24]
cmp byte [edi + 0x55], bl
je 0x41d2ad
sub esp, 0x20
mov edx, esp
mov dword [esp + 0x30], esp
push eax
push edx
call fcn.004058a0
push edi
call fcn.0041ce80
jmp 0x41d2b6
add edi, 0x70
push edi
call fcn.00405940
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00405820
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4