Function at 0x10043550
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x100a6250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
mov dword [ebp - 0x1c0], esi
mov dword [ebp - 0x1c8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10043ac8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jle 0x100435ff
lea esi, [edi + 8]
push esi
call fcn.1001a71b
push esi
push 0
push eax
mov dword [ebp - 0x1c8], eax
call fcn.100456c0
add esp, 0x10
lea eax, [ebp - 0x1e0]
push 0
push eax
mov eax, dword [ebp - 0x1c8]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x1c0]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1c8]
test ebx, ebx
je 0x10043ac8
test edi, edi
je 0x10043ac8
push esi
lea ecx, [ebp - 0x1d4]
call fcn.10008b60
lea eax, [ebp - 0x1c0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1c9]
call fcn.10041e10
mov ecx, dword [eax]
test ecx, ecx
jne 0x10043653
mov dword [ebp - 0x1c4], 0xffffffff
jmp 0x10043695
mov eax, dword [ebp - 0x1d4]
cmp dword [eax - 0xc], 0
jge 0x1004366b
mov dword [ebp - 0x1c4], 0xffffffff
jmp 0x10043695
push ecx
push eax
call fcn.10047741
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x10043687
mov dword [ebp - 0x1c4], 0xffffffff
jmp 0x10043695
sub ecx, dword [ebp - 0x1d4]
sar ecx, 1
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1c0]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100436b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.1002c840
mov esi, eax
add esp, 4
mov dword [ebp - 0x1d8], esi
test esi, esi
je 0x10043a9d
mov dword [ebp - 0x1e4], esi
push esi
call fcn.1002c760
mov ecx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1c0], eax
test ecx, ecx
jle 0x10043a94
mov ebx, dword [ebp - 0x1d0]
nop dword [eax + eax]
push eax
push esi
call fcn.1002c740
mov edi, eax
add esp, 8
test edi, edi
je 0x10043a72
lea ecx, [ebp - 0xb8]
call fcn.100418f0
push 0x10086a34
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1001bfe8
push 0x1008e260
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.1001bfe8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x10043766
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.10006b50
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 6
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043780
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.10006920
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x100437b5
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x28]
call fcn.10006680
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push 0x1008e264
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x10043814
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.10006b50
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0xa
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.10006920
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x10043865
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push str.BUrl
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x100438c4
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.10006b50
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0xe
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100438e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.10006920
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x10043915
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10006680
push 0x10086a34
lea ecx, [ebp - 0x28]
call fcn.1001bfe8
push str.SUrl
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xf
call fcn.1001bfe8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.1002d920
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x10043974
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1bc]
call fcn.10006b50
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0x12
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10043990
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.10006920
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x100439c2
push eax
call fcn.100492e8
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.10006680
lea ecx, [ebp - 0x40]
call fcn.10006680
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10006680
mov esi, dword [ebp + 8]
cmp esi, 1
jne 0x10043a13
cmp dword [ebp - 0x1c4], 0xffffffff
je 0x10043a0e
mov ecx, dword [ebp - 0x1d0]
push esi
lea eax, [ecx + 0x28]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10042120
mov ebx, dword [ebp - 0x1d0]
jmp 0x10043a61
lea ecx, [ebx + 0x28]
jmp 0x10043a55
cmp esi, 3
jne 0x10043a4d
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x88]
push eax
call esi
test eax, eax
je 0x10043a61
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call esi
test eax, eax
je 0x10043a61
lea ecx, [ebx + 0x40]
jmp 0x10043a55
cmp esi, 2
jne 0x10043a61
lea ecx, [ebx + 8]
lea eax, [ebp - 0xb8]
push eax
call fcn.100442d0
lea ecx, [ebp - 0xb8]
call fcn.100312f0
mov esi, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1c0]
inc eax
mov dword [ebp - 0x1c0], eax
cmp eax, dword [ebp - 0x1dc]
jl 0x10043700
mov ebx, dword [ebp - 0x1c8]
or edi, 0xffffffff
push esi
call fcn.1002c6d0
add esp, 4
push ebx
call fcn.1001a724
mov edx, dword [ebp - 0x1d4]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10043ac8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001a767
mov esp, ebp
pop ebp
ret 8