Function at 0x46cf50
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x652fd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], 0x6653b4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push ebx
mov dword [esp + 0xc0], ebx
call fcn.00624291
add esp, 4
push 0x20
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00612a1b
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x28], 0x20
call fcn.00443fc0
lea edx, [esp + 0x78]
push edx
push ebp
mov byte [esp + 0xc4], 1
call fcn.0046bcd0
lea esi, [esp + 0x5c]
call fcn.005b5940
push eax
mov edi, str.userdata
lea esi, [esp + 0x28]
mov byte [esp + 0xc0], 2
call fcn.0041fc00
add esp, 4
push eax
mov byte [esp + 0xc0], 3
call fcn.005b6fa0
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x3c], edi
jb 0x46d030
mov eax, dword [esp + 0x28]
push eax
call fcn.0062414c
add esp, 4
mov byte [esp + 0xbc], 1
cmp dword [esp + 0x74], edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x46d05b
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0062414c
add esp, 4
mov edx, dword [ebp + 0x20]
push edx
push str.userdata_user_d.dat
lea esi, [esp + 0x64]
call fcn.005b73b0
mov ebp, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0xc4], 4
call fcn.005b5940
push ebp
push eax
lea esi, [esp + 0x50]
mov byte [esp + 0xcc], 5
call fcn.004472a0
add esp, 0x10
cmp dword [esp + 0x3c], edi
jb 0x46d0a9
mov eax, dword [esp + 0x28]
push eax
call fcn.0062414c
add esp, 4
mov esi, 0xf
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
mov byte [esp + 0xbc], 8
cmp dword [esp + 0x74], edi
jb 0x46d0d5
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0062414c
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6ba058]
push edx
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
push eax
lea ebx, [esp + 0x48]
mov dword [esp + 0x7c], esi
call fcn.00550ae0
cmp dword [esp + 0x58], edi
mov eax, dword [esp + 0x44]
jae 0x46d108
lea eax, [esp + 0x44]
push 0x665358
push eax
call fcn.00624db9
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
jne 0x46d150
mov eax, dword [0x6ba058]
cmp eax, ebx
je 0x46d131
mov eax, dword [eax + 0x350]
cmp eax, ebx
jne 0x46d137
call dword [sym.imp.user32.dll_GetActiveWindow]
push 0x30
push str.Error_writing_user_file
push str.Cant_open_user_file
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
push ebx
call fcn.00625ad7
push 2
push ebx
push edi
call fcn.006255bc
add esp, 0xc
push edi
call fcn.006257d9
add esp, 4
push ebx
push ebx
push edi
mov esi, eax
call fcn.006255bc
add esp, 0xc
cmp esi, dword [esp + 0x1c]
je 0x46d1aa
mov eax, dword [0x6ba058]
cmp eax, ebx
je 0x46d18b
mov eax, dword [eax + 0x350]
cmp eax, ebx
jne 0x46d191
call dword [sym.imp.user32.dll_GetActiveWindow]
push 0x30
push str.Error_writing_user_file
push str.User_file_is_wrong_size
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
push ebx
call fcn.00625ad7
push esi
call fcn.00612a1b
add esp, 4
push edi
push esi
mov ebp, eax
push 1
push ebp
call fcn.00625156
push edi
call fcn.00624e3e
mov edx, dword [esp + 0x2c]
add esp, 0x14
cmp esi, 4
mov eax, esi
mov ecx, ebp
jb 0x46d1e9
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x46d1ed
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x46d1d5
cmp eax, ebx
je 0x46d24a
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x46d23c
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x46d24a
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x46d23c
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x46d24a
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x46d23c
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebx
je 0x46d24a
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x46d24a
cmp esi, ebx
mov eax, 1
jg 0x46d24c
or eax, 0xffffffff
jmp 0x46d24c
xor eax, eax
cmp eax, ebx
je 0x46d282
mov eax, dword [0x6ba058]
cmp eax, ebx
je 0x46d263
mov eax, dword [eax + 0x350]
cmp eax, ebx
jne 0x46d269
call dword [sym.imp.user32.dll_GetActiveWindow]
push 0x30
push str.Error_writing_user_file
push str.Failed_to_user_write_file
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
push ebx
call fcn.00625ad7
push ebp
call fcn.00624291
add esp, 4
cmp dword [esp + 0x58], 0x10
jb 0x46d29f
mov edx, dword [esp + 0x44]
push edx
call fcn.0062414c
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0xbc], bl
call fcn.00444060
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], 0x6653b4
je 0x46d2dc
push eax
call fcn.00624e3e
add esp, 4
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
push eax
call fcn.00624291
mov ecx, dword [esp + 0xb8]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 4