Function at 0x40a1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e628
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x426050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call fcn.004047f0
mov ebx, eax
push 0x421050
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], edi
call fcn.0040bdd8
add esp, 0xc
test eax, eax
jne 0x40a377
cmp dword [ebp - 0x14], eax
je 0x40a377
add ebx, 4
push ebx
call fcn.0040ac94
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x40a249
push ebx
push edi
push esi
call fcn.0040dae0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push ecx
push 1
push edx
push esi
call fcn.0040c0c4
add esp, 0x1c
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040c151
add esp, 4
test esi, esi
je 0x40a377
mov ebx, esi
mov al, byte [ebx]
cmp al, 0xff
jne 0x40a272
cmp byte [ebx + 1], 0xfe
mov dword [ebp - 0x18], 1
je 0x40a279
mov dword [ebp - 0x18], 0
cmp al, 0xef
jne 0x40a290
cmp byte [ebx + 1], 0xbb
jne 0x40a290
cmp byte [ebx + 2], 0xbf
jne 0x40a290
mov edi, 1
jmp 0x40a292
xor edi, edi
mov ecx, dword [ebp - 0x20]
cmp ecx, 2
jb 0x40a2a7
cmp dword [ebp - 0x18], 0
je 0x40a2a7
mov eax, 1
jmp 0x40a2a9
xor eax, eax
cmp ecx, 3
jb 0x40a2b9
test edi, edi
je 0x40a2b9
mov esi, 1
jmp 0x40a2bb
xor esi, esi
test eax, eax
mov eax, ebx
je 0x40a2e9
call fcn.0040a490
cmp dword [ebp - 0x18], 0
je 0x40a2cf
add ebx, 2
test ebx, ebx
jne 0x40a39e
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00402690
jmp 0x40a372
call fcn.0040a4d0
test esi, esi
je 0x40a3bf
test edi, edi
mov ecx, ebx
je 0x40a2ff
lea ecx, [ebx + 3]
lea edx, [ebp - 0x20]
push edx
call fcn.00407b00
lea eax, [ebp - 0x28]
push 0xfde9
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00406fd0
add esp, 8
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004069d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a34f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040ac99
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a3a3
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00402690
jmp 0x40a372
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x18]
call fcn.0040a130
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str..htm
push ecx
call esi
test eax, eax
jne 0x40a441
mov edx, dword [ebp - 0x18]
push 0x422c6c
push edx
call esi
test eax, eax
jne 0x40a435
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.00407b00
lea ecx, [ebp - 0x2c]
push 0
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00406fd0
add esp, 8
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.004069d0
lea ecx, [ebp - 0x2c]
call fcn.00402270
lea eax, [ebp - 0x24]
call fcn.00402520
mov edi, 1
jmp 0x40a44d
mov ecx, dword [ebp + 0xc]
mov edx, ebx
call fcn.00407990
jmp 0x40a44b
mov ecx, dword [ebp + 0xc]
mov edx, ebx
call fcn.00407820
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a377
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a377