Function at 0x5dbed4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x10042408]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
mov dword [esp + 0x3c], ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 4], 0
movlpd qword [esp + 8], xmm0
mov dword [esp + 0x1c], 0
mov dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x5dc4e9
call fcn.005ec3a4
push eax
push ecx
call fcn.005ec3a4
add esp, 4
push eax
push 0x1003d8ac
call fcn.005e4f84
mov edi, eax
add esp, 0xc
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x5dbf72
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005f4f86
mov esp, ebp
pop ebp
ret
push edi
test esi, esi
mov eax, 0x1003d78c
cmovne eax, esi
push eax
push 0x1003d7b0
lea eax, [esp + 0x18]
push 0
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5dc523
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x5dbfd3
push 0x1003d7c4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5dc508
push edi
push 0x1003d7c8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc508
push 0x1003d7d0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5dc508
lea eax, [esp + 0x10]
xor edx, edx
push eax
push dword [ebx + 8]
lea ecx, [esp + 0x14]
push dword [ebx + 4]
call fcn.005dbb44
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5dc508
push 0x1003d7f8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5dc508
cmp dword [ebx + 0x24], eax
je 0x5dc0bc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5dc071
push eax
call dword [0x1004343c]
add esp, 4
call fcn.005ec3a4
push eax
push ecx
call fcn.005ec3a4
add esp, 4
push eax
push 0x1003d8ac
call fcn.005e4f84
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x5dc489
push eax
push 0x1003d7fc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc508
mov edi, ebx
mov dword [esp + 0x28], edi
mov edi, edi
cmp dword [ebx + 0x24], 0
je 0x5dc0f3
push dword [esp + 0x24]
lea eax, [esp + 0x14]
push 0x1003d82c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc504
mov ecx, edi
jmp 0x5dc106
mov eax, dword [ebx + 0x28]
test al, 0x51
je 0x5dc121
cmp dword [ebx + 0x2c], 0
jne 0x5dc104
test al, 1
je 0x5dc119
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
call fcn.005dbdf4
mov esi, eax
add esp, 4
test esi, esi
jne 0x5dc504
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x5dc14a
push eax
push 0x1003d854
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc504
mov edi, dword [edi + 0x20]
test edi, edi
je 0x5dc180
lea ecx, [ecx]
push dword [edi]
lea eax, [esp + 0x14]
push 0x1003d868
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc504
mov edi, dword [edi + 4]
test edi, edi
jne 0x5dc154
jmp 0x5dc188
test esi, esi
jne 0x5dc504
push 0x1003d870
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5dc504
mov eax, dword [ebx + 0x28]
test al, 3
jne 0x5dc237
test al, 0x10
je 0x5dc1c5
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x18]
push dword [ebx + 0x14]
jmp 0x5dc21f
test al, 0x40
je 0x5dc214
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x30]
push 0x10
call dword [0x10043430]
add esp, 4
test eax, eax
jne 0x5dc1e6
lea esi, [eax + 0x1b]
jmp 0x5dc425
mov ecx, dword [esp + 0xc]
mov dword [eax], 0
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x5dc204
mov dword [ecx], eax
add dword [esp + 0x10], edi
adc dword [esp + 0x14], 0
xor esi, esi
jmp 0x5dc425
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
mov edx, 1
lea ecx, [esp + 0x18]
call fcn.005dbb44
add esp, 0xc
mov esi, eax
jmp 0x5dc425
mov edi, dword [esp + 0x28]
push dword [edi + 0xc]
push 0x1003d5a0
call fcn.0060b267
add esp, 8
test eax, eax
jne 0x5dc25c
call fcn.005f6a11
mov ebx, eax
mov dword [esp + 0x34], ebx
jmp 0x5dc272
push 0x1003d878
push dword [edi + 0xc]
call fcn.005f709c
add esp, 8
mov dword [esp + 0x34], eax
mov ebx, eax
test ebx, ebx
je 0x5dc3f9
call fcn.005f6a11
push ebx
cmp ebx, eax
je 0x5dc325
call fcn.005f5cc4
mov edi, dword [edi + 0xc]
add esp, 4
push 0x10
call dword [0x10043430]
mov esi, eax
add esp, 4
test esi, esi
jne 0x5dc2ae
mov esi, 0x1b
jmp 0x5dc421
mov eax, dword [esp + 0xc]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [esp + 0xc], esi
test eax, eax
je 0x5dc2cc
mov dword [eax], esi
push dword [esi + 8]
push 0x1003d5a0
call fcn.0060b267
add esp, 8
test eax, eax
je 0x5dc314
lea eax, [esp + 0x48]
push eax
push dword [esi + 8]
call fcn.005f7af4
add esp, 8
test eax, eax
jne 0x5dc31b
mov eax, dword [esp + 0x4e]
and eax, 0xf000
cmp eax, 0x4000
je 0x5dc31b
mov eax, dword [esp + 0x60]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
adc dword [esp + 0x14], eax
xor esi, esi
jmp 0x5dc421
mov esi, 0x2b
jmp 0x5dc421
push 0x200
lea eax, [esp + 0x88]
push 1
push eax
call fcn.005f5b3a
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x5dc421
mov ebx, dword [esp + 0xc]
xor esi, esi
lea ebx, [ebx]
push 0x10
call dword [0x10043430]
mov edi, eax
add esp, 4
test edi, edi
je 0x5dc2a4
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [edi], esi
push ecx
call dword [0x10043430]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x5dc3e8
push dword [esp + 0x2c]
lea ecx, [esp + 0x84]
push ecx
push eax
call fcn.005f8af4
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [edi + 8]
mov dword [edi + 0xc], ecx
mov byte [ecx + eax], 0
mov dword [edi + 4], 1
test ebx, ebx
je 0x5dc3b1
mov dword [ebx], edi
push dword [esp + 0x34]
add dword [esp + 0x14], ecx
lea eax, [esp + 0x84]
push 0x200
adc dword [esp + 0x1c], esi
mov ebx, edi
push 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.005f5b3a
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x5dc354
jmp 0x5dc421
push edi
call dword [0x1004343c]
add esp, 4
mov esi, 0x1b
jmp 0x5dc421
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5dc412
push dword [edi + 0xc]
push 0x1003d87c
push eax
call fcn.005ea214
add esp, 0xc
mov eax, dword [esp + 0x30]
mov esi, 0x1a
mov dword [eax], 0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x28], eax
test eax, eax
je 0x5dc443
test esi, esi
jne 0x5dc504
mov edi, eax
jmp 0x5dc0c4
test esi, esi
jne 0x5dc504
mov edi, dword [esp + 0x24]
cmp dword [ebx + 0x24], esi
je 0x5dc476
push edi
push 0x1003d894
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc504
mov ebx, dword [ebx]
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x5dc490
mov edi, dword [esp + 0x1c]
jmp 0x5dbfa8
mov esi, 0x1b
jmp 0x5dc508
test esi, esi
jne 0x5dc504
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push ebx
push 0x1003d8a0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.005dbca4
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5dc500
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
test edi, edi
je 0x5dc4d5
push edi
call dword [0x1004343c]
add esp, 4
push ebx
call dword [0x1004343c]
mov eax, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005f4f86
mov esp, ebp
pop ebp
ret
mov edi, ebx
jmp 0x5dc508
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
call fcn.005dbd44
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5dc523
push eax
call dword [0x1004343c]
add esp, 4
push edi
call dword [0x1004343c]
mov ecx, dword [esp + 0x288]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005f4f86
mov esp, ebp
pop ebp
ret