Function at 0x446410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x52cc9c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x334f4
call fcn.004f87d0
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x334f0], eax
push ebx
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x33538]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x88], esi
call fcn.004a4f4a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x44647d
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x33540], esi
call fcn.004a4f4a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4464ae
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x33540], 1
call fcn.004a4f4a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4464e0
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x103
lea ecx, [esp + 0x332f1]
push esi
push ecx
mov byte [esp + 0x3354c], 2
mov byte [esp + 0x332f8], 0
call fcn.004f67e0
push 0x438
lea edx, [esp + 0xa8]
push esi
push edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0xac], esi
call fcn.004f67e0
add esp, 0x18
mov dword [esp + 0x60], esi
call fcn.004a4f4a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x446556
push 0x80004005
call fcn.00401310
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x1ff
lea ecx, [esp + 0x4d9]
push esi
push ecx
mov byte [esp + 0x3354c], 3
mov dword [esp + 0x7c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov byte [esp + 0x4e0], 0
call fcn.004f67e0
push 0x1a98c
lea edx, [esp + 0x6e4]
push esi
push edx
call fcn.004f67e0
push 0x1ff
lea eax, [esp + 0x1b081]
push esi
push eax
mov byte [esp + 0x1b088], 0
call fcn.004f67e0
push 0x17980
lea ecx, [esp + 0x1b28c]
push esi
push ecx
call fcn.004f67e0
mov dl, byte [ebx + 0x118]
mov eax, dword [ebx + 0x114]
movzx ecx, word [ebx + 0x119]
mov byte [esp + 0x73], dl
mov edx, dword [ebx + 0x11b]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], eax
mov edx, 0x200
mul edx
mov dword [esp + 0x9c], ecx
mov cl, byte [ebx + 0x11f]
push 1
inc cl
push edx
mov byte [esp + 0x57], cl
mov ecx, dword [ebx + 0x123]
push eax
lea edi, [ebx + 0x10]
push edi
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edx
call fcn.00436df0
add esp, 0x40
test eax, eax
jne 0x44670e
mov ecx, dword [ebx + 8]
push 5
push 0xf014
push 0xf00f
call fcn.00442510
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x33540], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44668a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x33540], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4466b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x33540], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4466da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x33540], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4470f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4470f2
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x48], eax
cmp eax, 0xffffffff
je 0x44664e
movzx edi, byte [esp + 0x43]
mov dword [esp + 0x50], edi
shl edi, 9
push edi
mov dword [esp + 0x68], edi
call fcn.00496dbd
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, esi
je 0x44664e
push edi
push esi
push eax
call fcn.004f67e0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
add esp, 0xc
push esi
push 0x64
push ecx
push edx
call fcn.004f8300
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.004f81e0
push 0
lea ecx, [esp + 0x3c]
push ecx
mov edi, edx
mov edx, dword [esp + 0x50]
push eax
push edx
mov esi, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4468de
push 0
push 0x64
push edi
push esi
call fcn.004f81e0
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push ecx
push edx
push eax
call fcn.004f8300
cmp dword [0x7c1098], eax
je 0x446836
cmp eax, 0x5f
mov dword [0x7c1098], eax
jle 0x446828
mov eax, 0x5f
mov ecx, dword [ebx + 8]
push 0x539408
push eax
call fcn.0043a140
add dword [esp + 0x54], 1
adc dword [esp + 0x58], 0
js 0x446790
jg 0x446853
cmp dword [esp + 0x54], 0x64
jb 0x446790
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00496dc8
movzx edx, word [esp + 0x70]
add esp, 4
cmp dword [esp + 0x44], 0
mov dword [esp + 0x30], edx
je 0x4468eb
mov ecx, dword [ebx + 8]
push 0x539408
push 0x62
call fcn.0043a140
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x30]
mov ecx, 0x180
mov esi, str.JSTAR
lea edi, [esp + 0x32cec]
rep movsd dword es:[edi], dword [esi]
movzx ecx, byte [esp + 0x1f]
mov esi, dword [esp + 0x50]
shl esi, 7
lea edi, [ecx + esi]
xor edx, edx
div edi
mov edi, eax
mov eax, ecx
mov ecx, edi
imul eax, edi
shl ecx, 7
sub ecx, 2
imul ecx, dword [esp + 0x50]
add ecx, eax
add ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x44]
ja 0x44691f
mov ecx, eax
mov eax, edi
shl eax, 6
dec eax
imul eax, dword [esp + 0x50]
add eax, eax
jmp 0x446904
mov edx, dword [esp + 0x30]
push edx
call fcn.00496db2
add esp, 4
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44664e
mov ecx, dword [esp + 0x64]
movzx edx, byte [esp + 0x1f]
add ecx, edx
add eax, esi
lea edx, [eax + ecx]
add edx, dword [esp + 0x30]
inc edi
mov dword [esp + 0x64], ecx
cmp edx, dword [esp + 0x44]
jbe 0x446900
mov ax, word [esp + 0x4c]
mov cx, word [esp + 0x6c]
mov word [esp + 0x32cf7], ax
mov eax, 0xff
mov edx, 0x3f
mov word [esp + 0x32cfa], cx
mov word [esp + 0x32d06], ax
mov al, byte [esp + 0x1f]
mov ecx, edx
mov word [esp + 0x32d04], dx
mov dl, byte [esp + 0x50]
mov word [esp + 0x32d08], cx
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x32cfc], al
lea eax, [ebx + 0x127]
lea esi, [esp + 0x32d2c]
mov byte [esp + 0x32cf9], dl
mov byte [esp + 0x32d01], 0xf8
mov dword [esp + 0x32d18], 2
mov dword [esp + 0x32d0c], ecx
mov dword [esp + 0x32d10], edi
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4469a7
lea edx, [esp + 0x332ec]
push edx
call fcn.00424f50
add esp, 4
xor eax, eax
jmp 0x4469d0
mov cl, byte [esp + eax + 0x332ec]
mov byte [esp + eax + 0x32d3c], cl
inc eax
test cl, cl
jne 0x4469d0
lea eax, [ebx + 0x10]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4469f0
sub eax, edx
cmp eax, 0x104
ja 0x446a1a
lea eax, [ebx + 0x10]
lea edx, [esp + 0x32d6c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x446a10
mov eax, 0xaa55
mov ecx, eax
mov word [esp + 0x330ea], cx
movzx ecx, byte [esp + 0x1f]
imul ecx, edi
mov word [esp + 0x32eea], ax
mov eax, dword [esp + 0x44]
sub eax, ecx
sub eax, dword [esp + 0x30]
xor edx, edx
div dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x38]
mov edx, 0xaa55
mov dword [esp + 0x32eec], 0x41615252
mov dword [esp + 0x330d0], 0x61417272
mov dword [esp + 0x330d8], 2
mov word [esp + 0x332ea], dx
dec eax
mov dword [esp + 0x330d4], eax
xor eax, eax
push eax
push ecx
push eax
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x60]
push edx
push 0x600
lea eax, [esp + 0x32cf8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446aca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44664e
push 0x200
lea ecx, [esp + 0x32cf0]
push 0
push ecx
call fcn.004f67e0
mov eax, dword [esp + 0x3c]
shl eax, 9
cdq
add esp, 0xc
push 0
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
push edx
push eax
push esi
mov dword [esp + 0x32cfc], 0xffffff8
mov dword [esp + 0x32d00], 0xffffffff
mov dword [esp + 0x32d04], 0xfffffff
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x60]
push eax
push 0x200
lea ecx, [esp + 0x32cf8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x446b7c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 8]
push 5
push 0xf014
push 0xf00f
call fcn.00442510
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x33540], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x44667e
cmp byte [esp + 0x1f], 2
jne 0x446bca
mov ecx, dword [esp + 0x30]
push 0
add edi, ecx
lea edx, [esp + 0x3c]
push edx
shl edi, 9
push edi
push esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x60]
push eax
push 0x200
lea ecx, [esp + 0x32cf8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x446b40
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
lea eax, [ecx + edx]
push 0
lea ecx, [esp + 0x3c]
shl eax, 9
push ecx
push eax
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x60]
push edx
push 0x200
push str.JSTARSYSTEM_b
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x4468f0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 8]
call fcn.0043a8a0
push 1
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [ebx + 8]
push 0
push 0
lea edx, [esp + 0x80]
push edx
lea esi, [ebx + 0x10]
push esi
mov edi, eax
call fcn.0043aa10
test eax, eax
je 0x44664e
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
push 0
push 0
push 1
push edi
push ecx
mov ecx, dword [ebx + 0xc]
push edx
push eax
push esi
push ecx
mov ecx, dword [ebx + 8]
call fcn.0043b290
mov ecx, dword [ebx + 8]
test eax, eax
jne 0x446c91
push 5
push 0xf014
push 0xf00f
call fcn.00442510
jmp 0x4470ce
push 0x539408
push 0x64
call fcn.0043a140
mov ecx, dword [0x7c8f5c]
xor edi, edi
cmp ecx, edi
je 0x446cb4
call fcn.00421ff0
mov dword [0x7c8f5c], edi
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push esi
call fcn.00402f70
mov ecx, dword [ebx + 0xc]
add ecx, 0x134
call fcn.00410f00
cmp dword [ebx + 4], edi
je 0x446da1
cmp dword [0x58b274], edi
je 0x446d56
mov ecx, dword [ebx + 8]
add ecx, 0xd04
call fcn.00419770
mov edx, dword [ebx + 8]
push 0xf00c
lea ecx, [esp + 0x24]
mov dword [edx + 0xc44], edi
call fcn.00402a70
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
add eax, 0x144
push eax
push ecx
lea edx, [esp + 0x333fc]
push edx
call fcn.004f726c
add esp, 8
lea eax, [esp + 0x333f8]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.00402f70
mov ecx, dword [0x7bf858]
add ecx, 0x134
call fcn.004110f0
mov ecx, dword [ebx + 0xc]
push eax
add ecx, 0x134
call fcn.0040fe10
mov ecx, dword [ebx + 8]
push 0x53b900
call fcn.00440f60
mov ecx, dword [ebx + 8]
push edi
add ecx, 0xd04
call fcn.00406580
mov ecx, dword [ebx + 0xc]
add ecx, 0x134
call fcn.00413c70
mov ecx, dword [ebx + 0xc]
push 0x53b900
add ecx, 0x134
call fcn.00414200
mov ecx, dword [ebx + 0xc]
add ecx, 0x134
call fcn.00413cb0
mov ecx, dword [ebx + 8]
mov edi, 1
mov dword [ecx + 0xd98], edi
mov ecx, dword [ebx + 8]
call fcn.00441790
cmp dword [ebx], 0
je 0x44709d
mov eax, dword [esp + 0x68]
lea eax, [eax + eax*2]
shl eax, 4
lea edx, [esp + 0x1b064]
push edx
mov edx, dword [eax + 0x5828fc]
lea ecx, [esp + 0x4d8]
push ecx
mov ecx, dword [eax + 0x5828f8]
push edx
mov edx, dword [eax + 0x5828f4]
push ecx
mov ecx, dword [eax + 0x5828f0]
push edx
mov edx, dword [eax + 0x5828ec]
push ecx
mov ecx, dword [eax + 0x5828e8]
push edx
mov edx, dword [eax + 0x5828e4]
push ecx
mov ecx, dword [eax + 0x5828e0]
push edx
mov edx, dword [eax + 0x5828dc]
push ecx
mov ecx, dword [eax + 0x5828d8]
push edx
mov edx, dword [eax + 0x5828d4]
mov eax, dword [eax + 0x5828d0]
push ecx
push edx
mov dword [0x7c4570], 0
mov ecx, dword [ebx + 8]
push eax
push ecx
call fcn.004370b0
add esp, 0x3c
test eax, eax
je 0x446efb
push 0x200000
call fcn.00496dbd
mov esi, eax
add esp, 4
test esi, esi
je 0x446efb
push 0x200000
push 0
push esi
call fcn.004f67e0
lea edx, [esp + 0x4e0]
mov eax, 0x1ab8c
lea ecx, [esp + 0x1b070]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xbc], eax
lea edx, [esp + 0xa0]
lea eax, [esp + 0x6c]
lea ecx, [ebx + 0x22b]
push edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xb8], 0x17b80
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
call fcn.0042c420
add esp, 0x10
test eax, eax
jne 0x446f14
push esi
call fcn.00496dc8
add esp, 4
mov ecx, dword [ebx + 8]
push 5
push 0xf014
push 0xf00f
call fcn.00442510
jmp 0x4470ce
mov eax, dword [0x7c4570]
mov ecx, dword [0x7bf85c]
inc eax
push 0x53fccc
mov dword [0x7c4570], eax
push 3
dec eax
push eax
add ecx, 0x60c
call fcn.00470a70
mov eax, dword [0x7bf85c]
mov ecx, dword [eax + 0x62c]
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call edi
fild dword [esp + 0x60]
mov edx, dword [esp + 0x60]
test edx, edx
jge 0x446f5f
fadd qword [0x53c9c0]
fmul qword [0x53e230]
sub esp, 8
lea eax, [esp + 0x32bec]
fstp qword [esp]
push str._4.2f_K_
push eax
call fcn.004f726c
mov edx, dword [0x7c4570]
add esp, 0x10
lea ecx, [esp + 0x32be4]
push ecx
mov ecx, dword [0x7bf85c]
push 1
dec edx
push edx
add ecx, 0x60c
call fcn.00470a70
mov eax, dword [0x7bf85c]
mov ecx, dword [eax + 0x62c]
push ecx
call edi
mov ecx, dword [ebx + 8]
push 1
lea edx, [esp + 0x64]
push edx
push esi
call fcn.004398a0
mov ecx, dword [ebx + 0xc]
add ecx, 0x134
call fcn.00413c60
push esi
call fcn.00496dc8
mov ecx, dword [ebx + 8]
add esp, 4
push 4
push 0xf01d
push 0xf01e
call fcn.00442510
mov ecx, dword [0x7bf85c]
add ecx, 0x60c
call fcn.00470360
push 0x1ab8c
lea eax, [esp + 0x4d8]
push eax
push 0x58c400
call fcn.004f7b80
push 0x17b80
lea ecx, [esp + 0x1b074]
push ecx
push 0x5a6f90
call fcn.004f7b80
mov edx, 0x2f
lea eax, [esp + 0x32bfc]
add esp, 0x18
mov dword [0x58c3fc], 0x1ab8c
mov dword [0x5a6f8c], 0x17b80
mov word [esp + 0x32be4], dx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x447057
mov ecx, dword [str.corepw.key]
mov edx, dword [0x53c684]
mov dword [eax], ecx
mov cx, word [0x53c688]
mov dword [eax + 4], edx
mov dl, byte [0x53c68a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 1
lea eax, [esp + 0x32be8]
push eax
mov ecx, 0x7c4e58
call fcn.0041ab80
mov edi, 1
mov ecx, dword [0x7bf858]
add ecx, 0x134
call fcn.00410120
mov ecx, dword [ebx + 8]
push edi
lea eax, [ebx + 0x10]
push eax
call fcn.0043e1c0
mov ebx, dword [ebx + 8]
cmp dword [ebx + 0x140], edi
jne 0x4470ce
push edi
mov ecx, ebx
call fcn.0043f8c0
lea ecx, [esp + 0x24]
call fcn.004023f0
lea ecx, [esp + 0x20]
call fcn.004023f0
lea ecx, [esp + 0x28]
call fcn.004023f0
lea ecx, [esp + 0x2c]
call fcn.004023f0
xor eax, eax
mov ecx, dword [esp + 0x33538]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x334f0]
xor ecx, esp
call fcn.004f6592
mov esp, ebp
pop ebp
ret