Function at 0x42d8f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55d248
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5b2ae0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.004eff6d
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42d938
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], ebx
call fcn.004eff6d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42d966
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x50], 1
call fcn.004432b0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0xffffffff
mov dword [esp + 0x24], ebx
mov esi, dword [ebp + 8]
push 0x578290
push esi
mov byte [esp + 0x58], 2
call fcn.00518533
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x42d9d2
push edi
call fcn.005193b3
add esp, 4
push eax
call fcn.005193e5
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42da51
push edi
call fcn.005185c1
add esp, 4
push esi
lea edx, [esp + 0x14]
push 0x5742e8
push edx
call fcn.00401cc0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
call fcn.004f030b
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42da18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42da3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 2]
push eax
call fcn.00518cd9
add esp, 4
mov dword [esp + 0x28], eax
push edi
test eax, eax
je 0x42d9ca
push 1
push ebx
push eax
call fcn.00519396
mov eax, dword [esp + 0x38]
xor ecx, ecx
push edi
mov word [eax + ebx], cx
mov dword [esp + 0x38], eax
call fcn.005185c1
mov edi, dword [esp + 0x3c]
add esp, 0x14
cmp ebx, 4
jbe 0x42db4e
cmp dword [edi], 0x414d53
jne 0x42db4e
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, ebx
mov ebx, edi
call fcn.0042a660
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x42db08
push esi
lea edx, [esp + 0x14]
push 0x574318
push edx
call fcn.00401cc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.004f030b
push edi
call fcn.00518bfc
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00401ce0
lea ecx, [esp + 0x10]
call fcn.00401ce0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0045e330
add esp, 8
lea esi, [esp + 0x24]
call fcn.0044dd60
lea ecx, [esp + 0x14]
call fcn.00401ce0
lea ecx, [esp + 0x10]
call fcn.00401ce0
cmp ebx, 1
je 0x42dfa0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x23
je 0x42db82
push esi
lea edx, [esp + 0x14]
push 0x574318
push edx
call fcn.00401cc0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
call fcn.004f030b
push edi
call fcn.00518bfc
add esp, 4
jmp 0x42d9f3
push 0x2e
push esi
call fcn.005190ca
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x42dbe1
push 0x574398
push eax
call fcn.0051a3f6
add esp, 8
test eax, eax
jne 0x42dbe1
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0042d170
push edi
mov esi, eax
call fcn.00518bfc
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00401ce0
lea ecx, [esp + 0x10]
call fcn.00401ce0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.00404090
push 0x57418c
lea eax, [esp + 0x1c]
mov byte [esp + 0x54], 3
push eax
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call fcn.004434a0
mov byte [esp + 0x50], 4
cmp dword [esp + 0x2c], 0xffffffff
je 0x42ddd0
lea ebx, [ebx]
lea edi, [esp + 0x18]
call fcn.00443630
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
jl 0x42de31
cmp byte [eax], 0x23
jne 0x42dc65
add eax, 0xfffffff0
mov byte [esp + 0x50], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42dd99
push 0x574194
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ebx
call fcn.004434a0
mov byte [esp + 0x50], 5
mov ecx, dword [esp + 0x38]
cmp ecx, 0xffffffff
je 0x42de5b
lea eax, [esp + 0x30]
lea edx, [esp + 0x18]
call fcn.004436d0
lea edi, [esp + 0x30]
mov byte [esp + 0x50], 6
call fcn.00443630
lea edi, [esp + 0x1c]
call fcn.004435d0
mov eax, dword [esp + 0x1c]
push 0x574368
push eax
call fcn.00519ac8
mov esi, dword [esp + 0x38]
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x42dceb
lea ecx, [esp + 0x3c]
push ecx
push 0x573724
push esi
call fcn.005190a8
add esp, 0xc
jmp 0x42dd3a
mov edx, dword [esp + 0x1c]
push 0x574370
push edx
call fcn.00519ac8
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x42dd1b
lea eax, [esp + 0x40]
push eax
push 0x574378
push esi
call fcn.005190a8
add esp, 0xc
jmp 0x42dd3a
mov ecx, dword [esp + 0x1c]
push 0x57438c
push ecx
call fcn.00519ac8
add esp, 8
cmp eax, ebx
sete al
test al, al
jne 0x42de3b
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dd5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dd80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dda5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x57418c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
call fcn.004434a0
mov byte [esp + 0x50], 4
cmp dword [esp + 0x2c], 0xffffffff
jne 0x42dc30
mov esi, dword [ebp + 8]
push esi
lea eax, [esp + 0x14]
push 0x574318
push eax
call fcn.00401cc0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push ecx
call fcn.004f030b
lea ecx, [esp + 0x18]
call fcn.00401ce0
lea ecx, [esp + 0x20]
call fcn.00401ce0
lea esi, [esp + 0x24]
call fcn.0044dd60
lea ecx, [esp + 0x14]
call fcn.00401ce0
lea ecx, [esp + 0x10]
call fcn.00401ce0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401f30
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push 0x573724
push eax
call fcn.005190a8
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00401ce0
lea ecx, [esp + 0x1c]
call fcn.00401ce0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 3
call fcn.00401ce0
mov eax, dword [esp + 0x3c]
mov dword [0x5bf8bc], eax
cmp eax, ebx
jne 0x42debc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push 0x574318
push edx
call fcn.00401cc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.004f030b
lea ecx, [esp + 0x20]
call fcn.00401ce0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00518bfc
add esp, 4
jmp 0x42de0a
cmp eax, 0x52
jbe 0x42dee0
push 0x5743a8
lea ecx, [esp + 0x14]
call fcn.004050b0
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
call fcn.004f030b
jmp 0x42ddf8
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
lea esi, [edi + eax]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x42df25
mov dword [esp + 0x30], ebx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.0042c190
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
inc ecx
add esp, 0x18
mov dword [esp + 0x30], ecx
cmp ecx, eax
jb 0x42def7
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42df4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.00518bfc
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42df78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42dfa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret