Function at 0x539f30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5b0c7f
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x254]
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebp
xor ecx, ecx
mov dword [esp + 0x248], ecx
mov edi, dword [esp + 0x250]
xor esi, esi
cmp dword [edi - 0xc], ecx
mov dword [esp + 0x20], ecx
jge 0x539fa1
push 0x80070057
call fcn.00406af0
movzx eax, word [edi]
cmp ax, 0x5c
jne 0x539faf
mov esi, 1
mov eax, dword [ebx + 0x6c]
cmp dword [eax + 0x10], ecx
je 0x53a159
cmp esi, ecx
je 0x53a159
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.00406580
lea ecx, [esp + 0x1c]
push ecx
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.00539b20
lea edi, [esp + 0x250]
mov byte [esp + 0x248], 1
call fcn.00406500
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x53a01e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x250]
test eax, eax
jne 0x53a057
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x248], 2
mov eax, dword [ebx + 0x70]
push ecx
push esi
mov dword [esp + 0x34], 0
call fcn.0057a9f0
test al, al
je 0x53a072
mov ebx, dword [esp + 0x2c]
jmp 0x53a075
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x53a02f
push 0x8007000e
call fcn.00406af0
or ebx, 0xffffffff
mov byte [esp + 0x248], 0
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call ebp
cmp ebx, 0xffffffff
je 0x53a2ec
lea esi, [ebx + 1]
push esi
mov dword [esp + 0x28], vtable.CxAutoArray_unsigned_char_.0
call fcn.00587d67
add esp, 4
push esi
mov edi, eax
push 0
push edi
mov dword [esp + 0x34], edi
call fcn.0058e300
add esp, 0xc
mov dword [esp + 0x2c], esi
mov byte [esp + 0x248], 3
mov eax, dword [esp + 0x250]
test eax, eax
jne 0x53a11d
xor esi, esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x248], 4
mov eax, dword [esp + 0x1c]
push ebx
push edi
add eax, 0x68
mov edx, esi
call fcn.00571060
mov ebx, eax
push esi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x24c], 3
call ebp
xor eax, eax
cmp ebx, eax
jne 0x53a138
lea ecx, [esp + 0x24]
call fcn.0041c130
lea ecx, [esp + 0x250]
call fcn.004066e0
xor eax, eax
jmp 0x53a31e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jne 0x53a0d2
push 0x8007000e
call fcn.00406af0
mov esi, dword [esp + 0x30]
mov ebx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0053a6c0
lea ecx, [esp + 0x24]
call fcn.0041c130
jmp 0x53a2ec
push 0x208
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0058e300
add esp, 0xc
lea eax, [esp + 0x34]
mov edx, 0x104
mov ecx, eax
test esi, esi
je 0x53a1ba
mov esi, dword [ebx + 0x64]
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x53a1a0
movzx ecx, word [esi + eax]
test cx, cx
je 0x53a1a0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x53a180
jmp 0x53a1a4
test edx, edx
jne 0x53a1a7
sub eax, 2
xor edx, edx
mov word [eax], dx
push edi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x53a1e8
sub edi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x53a1dc
movzx ecx, word [edi + eax]
test cx, cx
je 0x53a1dc
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x53a1bc
jmp 0x53a1e0
test edx, edx
jne 0x53a1e3
sub eax, 2
xor edx, edx
mov word [eax], dx
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push eax
lea ecx, [esp + 0x3c]
call fcn.00406c20
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00539b20
mov byte [esp + 0x248], 5
mov edx, dword [esp + 0x18]
push 0x5e420c
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
call fcn.0058aabf
add esp, 0xc
test eax, eax
jne 0x53a2c4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x53a2c4
push 2
push 0
push eax
call fcn.0058d9a6
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
call fcn.0058d8ae
mov ebx, eax
add esp, 4
lea esi, [ebx + 1]
push esi
mov dword [esp + 0x24], ebx
call fcn.00587d67
add esp, 4
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.0058e300
mov edx, dword [esp + 0x28]
add esp, 0xc
push esi
push esi
push edx
call fcn.0058d9a6
mov eax, dword [esp + 0x28]
add esp, 0xc
push eax
push ebx
push 1
push edi
call fcn.0058adb2
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0058ae46
mov eax, dword [ebp + 4]
add esp, 0x14
cmp eax, edi
je 0x53a2c4
cmp eax, esi
je 0x53a2be
push eax
call fcn.00588add
add esp, 4
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 4], edi
mov dword [ebp + 8], esi
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x53a2ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x250]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53a31a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.005886fc
add esp, 0x238
ret 8