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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa01e
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5f300c]
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 esi, ecx
mov dword [ebp - 0xe0], esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xe4], eax
xor eax, eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00518e40
mov edx, ebx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x551fa5
sub edx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf0]
mov ebx, dword [ebp - 0xec]
mov dword [ebp - 0xd0], ecx
cmp ecx, ebx
je 0x5527e9
jmp 0x551ff0
mov al, byte [esi + 0xa14]
test al, al
jne 0x5527af
cmp word [edi], 0
je 0x55201f
push edi
call fcn.005195d0
test al, al
jne 0x55201f
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
jmp 0x55268c
push 0x10010
call fcn.0059df75
mov ecx, dword [ebp - 0xd0]
add esp, 4
mov esi, eax
mov dword [ebp - 0x104], esi
cmp dword [ecx + 0x14], 0
jbe 0x55205d
cmp dword [ecx + 0x18], 8
lea eax, [ecx + 4]
jb 0x55204c
mov eax, dword [ecx + 4]
push 0x5c0b9c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
jmp 0x55205f
xor eax, eax
mov ecx, dword [ebp - 0xe4]
lea edi, [esi + 6]
mov ebx, dword [ebp - 0xdc]
test eax, eax
mov dword [esi], eax
mov byte [esi + 4], 0
sete al
mov byte [esi + 5], al
or ebx, 2
mov byte [edi], 0
mov eax, ecx
mov dword [esi + 0x10008], 0
mov dword [esi + 0x1000c], 0
shr eax, 1
and al, 1
mov dword [ebp - 0x80], esi
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x44], al
mov byte [ebp - 4], 3
test cl, 0x10
jne 0x55214f
mov ecx, dword [esi + 0x1000c]
cmp dword [esi + 0x10008], ecx
jb 0x552135
cmp byte [esi + 4], 0
jne 0x552131
mov eax, dword [esi]
test eax, eax
je 0x552131
push eax
push 0x10000
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [esi + 0x1000c], eax
cmp eax, 0x10000
jae 0x552123
mov byte [esi + 4], 1
mov dword [esi + 0x10008], 0
mov ecx, eax
jmp 0x552135
mov byte [esi + 5], 1
xor eax, eax
test ecx, ecx
je 0x55214f
jmp 0x552140
cmp byte [eax + edi], 0
je 0x5525c5
inc eax
cmp eax, ecx
jb 0x552140
lea ecx, [ebp - 0x80]
call fcn.00551d80
mov edi, eax
test edi, edi
je 0x5525c5
jmp 0x552176
mov ebx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x7c]
mov eax, 0x68db8bad
imul ecx
mov dword [ebp - 0x104], ebx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x2710
sub ecx, eax
jne 0x5521ba
mov eax, dword [ebp - 0xe0]
mov al, byte [eax + 0xa14]
test al, al
jne 0x5526f4
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], eax
mov ebx, dword [ebp - 0x108]
push ebx
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
je 0x5525b3
test byte [ebp - 0xe4], 1
je 0x552251
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5521e3
sub ecx, esi
lea esi, [ecx + edi]
nop
cmp edx, edi
je 0x552213
mov al, byte [edx - 1]
cmp al, 0x41
jl 0x5521ff
cmp al, 0x5a
jle 0x55223d
cmp al, 0x61
jl 0x552207
cmp al, 0x7a
jle 0x55223d
cmp al, 0x30
jl 0x55220f
cmp al, 0x39
jle 0x55223d
cmp al, 0x5f
je 0x55223d
mov eax, dword [ebp - 0x10c]
add eax, edx
cmp eax, esi
je 0x552251
mov al, byte [eax]
cmp al, 0x41
jl 0x552229
cmp al, 0x5a
jle 0x55223d
cmp al, 0x61
jl 0x552231
cmp al, 0x7a
jle 0x55223d
cmp al, 0x30
jl 0x552239
cmp al, 0x39
jle 0x55223d
cmp al, 0x5f
jne 0x552251
lea eax, [edx + 1]
push ebx
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
jne 0x5521f0
test edx, edx
je 0x5525b3
mov edx, dword [ebp - 0xd0]
lea ecx, [ebp - 0xb0]
lea edx, [edx + 4]
call fcn.00560610
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 0x10
mov ebx, dword [ebp - 0xb0]
jb 0x552288
mov ecx, ebx
mov edi, ecx
lea edx, [edi + 1]
lea ecx, [ecx]
mov al, byte [edi]
inc edi
test al, al
jne 0x552290
mov esi, dword [ebp - 0x2c]
sub edi, edx
mov edx, dword [ebp - 0x30]
mov eax, esi
sub eax, edx
cmp edi, eax
ja 0x5522cc
lea eax, [edx + edi]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmp esi, 0x10
jb 0x5522b8
mov eax, dword [ebp - 0x40]
push edi
lea esi, [eax + edx]
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x5522ea
push edi
push ecx
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x110]
push edi
call fcn.00415dd0
mov ebx, dword [ebp - 0xb0]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jb 0x552324
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x55231a
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x55271a
push ecx
push ebx
call fcn.0059e222
add esp, 8
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jb 0x55235d
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmp edx, 0x10
jb 0x552344
mov eax, dword [ebp - 0x40]
push 1
lea esi, [eax + ecx]
push 0x5d3f28
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x55237b
push 1
push 0x5d3f28
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x114]
push 1
call fcn.00415dd0
mov edx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x13]
test edx, edx
jns 0x552395
neg edx
call fcn.0045c300
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x55239c
call fcn.0045c300
mov ecx, eax
lea edx, [ebp - 0x13]
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x98], 0
mov eax, 0xf
mov dword [ebp - 0x84], eax
cmp ecx, edx
je 0x5523d6
mov eax, edx
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x98]
call fcn.0040af10
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x104]
or ecx, 0x3c
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
mov ebx, dword [ebp - 0x98]
cmp eax, 0x10
jb 0x552402
mov ecx, ebx
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x552407
mov esi, dword [ebp - 0x2c]
sub edi, edx
mov edx, dword [ebp - 0x30]
mov eax, esi
sub eax, edx
cmp edi, eax
ja 0x552443
lea eax, [edx + edi]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmp esi, 0x10
jb 0x55242f
mov eax, dword [ebp - 0x40]
push edi
lea esi, [eax + edx]
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x552461
push edi
push ecx
mov byte [ebp - 0x118], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x118]
push edi
call fcn.00415dd0
mov ebx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jb 0x55249a
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmp edx, 0x10
jb 0x552481
mov eax, dword [ebp - 0x40]
push 1
lea esi, [eax + ecx]
push 0x5d3f24
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x5524b8
push 1
push 0x5d3f24
mov byte [ebp - 0x11c], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x11c]
push 1
call fcn.00415dd0
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
jb 0x5524c4
mov ecx, dword [ebp - 0x5c]
mov edi, ecx
lea edx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x5524d0
mov esi, dword [ebp - 0x2c]
sub edi, edx
mov edx, dword [ebp - 0x30]
mov eax, esi
sub eax, edx
cmp edi, eax
ja 0x55250c
lea eax, [edx + edi]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmp esi, 0x10
jb 0x5524f8
mov eax, dword [ebp - 0x40]
push edi
lea esi, [eax + edx]
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x552524
push edi
push ecx
mov byte [ebp - 0x120], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x120]
push edi
call fcn.00415dd0
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jb 0x55255d
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmp edx, 0x10
jb 0x552544
mov eax, dword [ebp - 0x40]
push 1
lea esi, [eax + ecx]
push 0x5d3f44
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x55257b
push 1
push 0x5d3f44
mov byte [ebp - 0x124], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x124]
push 1
call fcn.00415dd0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
cmp ecx, 0x10
jb 0x5525b3
inc ecx
mov eax, ebx
cmp ecx, 0x1000
jb 0x5525a9
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x55271a
push ecx
push ebx
call fcn.0059e222
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.00551d80
mov edi, eax
test edi, edi
jne 0x552170
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x5525fd
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5525f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x55271a
push edx
push ecx
call fcn.0059e222
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x552643
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x552639
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x55271a
push edx
push ecx
call fcn.0059e222
add esp, 8
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
test esi, esi
je 0x552680
mov eax, dword [esi]
test eax, eax
je 0x55266c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x10010
push esi
mov dword [esi], 0
call fcn.0059e222
add esp, 8
mov edi, dword [ebp - 0x100]
mov esi, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd0]
mov ebx, dword [ebp - 0xec]
add ecx, 0x1c
mov dword [ebp - 0xd0], ecx
cmp ecx, ebx
jne 0x551ff0
cmp dword [ebp - 0x30], 0
je 0x5526e3
test byte [ebp - 0xe4], 4
je 0x5527c0
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x5526d3
mov ecx, dword [ebp - 0x40]
push eax
push 1
push dword [ebp - 0x30]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xd0], esi
jmp 0x5527eb
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x55272a
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x552720
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x552720
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x552772
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x552768
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x552768
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
test esi, esi
je 0x5527af
mov eax, dword [esi]
test eax, eax
je 0x55279b
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x10010
push esi
mov dword [esi], 0
call fcn.0059e222
add esp, 8
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xd0], esi
jmp 0x5528ba
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [esi]
mov edx, dword [eax + 0xf0]
lea eax, [ebp - 0x40]
jb 0x5527d4
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
mov ecx, esi
call edx
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0xd0], esi
jmp 0x5527eb
mov esi, ecx
mov edi, dword [ebp - 0xfc]
cmp edi, dword [ebp - 0xf8]
je 0x5528c0
ret
add byte [eax], al
invalid
mov ebx, dword [ebp - 0xe4]
and ebx, 8
test ebx, ebx
jne 0x552852
mov eax, dword [ebp - 0xe0]
mov ecx, edi
mov eax, dword [eax]
mov esi, dword [eax + 0x198]
lea eax, [ebp - 0xcc]
push eax
call fcn.00518470
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xd8]
or ecx, 1
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xe0]
push eax
call esi
mov byte [ebp - 0xd1], bl
test al, al
je 0x552859
mov byte [ebp - 0xd1], 1
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xd8]
test al, 1
je 0x55287e
and eax, 0xfffffffe
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xd8], eax
call fcn.0040ab30
cmp byte [ebp - 0xd1], 0
je 0x5528a5
push dword [ebp - 0x100]
mov ecx, dword [ebp - 0xe0]
push dword [ebp - 0x108]
push edi
push dword [ebp - 0xe4]
call fcn.00551f00
add edi, 0x1c
cmp edi, dword [ebp - 0xf8]
jne 0x552806
mov esi, dword [ebp - 0xd0]
mov ebx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xfc]
cmp edx, 0x10
jb 0x5528fc
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5528f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5528f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test esi, esi
je 0x55297c
cmp esi, ebx
je 0x552925
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x552916
mov ecx, dword [ebp - 0xe8]
mov eax, 0x92492493
mov ebx, dword [ebp - 0xd0]
sub ecx, ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, ebx
shl ecx, 2
cmp ecx, 0x1000
jb 0x552972
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x552972
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.0059e222
add esp, 8
test edi, edi
je 0x5529f0
mov ebx, dword [ebp - 0xf8]
mov esi, edi
cmp esi, ebx
je 0x55299f
lea esp, [esp]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x552990
mov ecx, dword [ebp - 0xf4]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x5529e6
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5529e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0059e222
add esp, 8
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.0059df64
mov esp, ebp
pop ebp
ret 0x10