Function at 0x651227d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6514ea21
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6516c6d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
push str.MitiLoginPanelOffset
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
push str.LoginPanelConfig
push 0x65158aac
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_long_int___cdecl_ModuleConfig::GetConfigFieldData_wchar_t_const___wchar_t_const___struct_ITXDataRead___]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp eax, esi
je 0x65122848
lea ecx, [ebp - 0x14]
push ecx
push str.MitiLoginPanelOffsetMappingFile
push eax
call dword [sym.imp.Common.dll_int___cdecl_Util::Data::GetTXDataStr_struct_ITXDataRead___wchar_t_const___class_CTXStringW__]
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
jne 0x651228ab
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edi
call fcn.65122650
cmp dword [ebp - 0x10], esi
je 0x65122926
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.65122240
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
sub ecx, esi
sub eax, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], eax
jmp 0x65122904
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
mov dword [ebp + 0xc], esi
call fcn.65120f30
cmp dword [ebp - 0x10], esi
je 0x65122926
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, edi
call fcn.65122240
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
sub eax, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
sub eax, ebx
cmp dword [ebp + 0x10], 0
mov dword [ebp + 0xc], eax
jne 0x65122904
mov dword [ebp - 0x18], 1
lea edx, [eax + ebx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
add ecx, esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.6511fd20
test eax, eax
jne 0x6512298d
xor esi, esi
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
call ebx
push 1
mov esi, eax
call ebx
mov ecx, edi
mov ebx, eax
call fcn.65121170
mov edx, dword [edi + 0xb10]
mov eax, dword [edi + 0xb08]
lea ecx, [edx + eax + 0x128]
mov edx, dword [edi + 0xb14]
mov eax, dword [edi + 0xb0c]
mov dword [ebp - 0x10], ecx
lea ecx, [edx + eax + 0x2b8]
lea eax, [esi + esi*2]
cdq
and edx, 3
add eax, edx
mov esi, eax
mov eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
sar esi, 2
sub esi, eax
mov eax, ebx
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov dword [ebp + 0xc], ecx
sar ebx, 1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
jne 0x651229d0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 1
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push 0x18c
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [ebp - 0x28], 1
je 0x65122c3e
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x65122c3e
lea edx, [eax + 0xc]
mov dword [ebp - 0x24], edx
xor ecx, ecx
cmp dword [edx], 0
je 0x65122a13
add ecx, 1
add edx, 0xc
cmp ecx, 0x20
jl 0x65122a01
jmp 0x65122a44
mov eax, dword [ebp - 0x24]
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*4]
mov dword [edi + 0xb18], eax
mov dword [eax], 1
mov edx, dword [edi + 0xb18]
cmp dword [edx + 4], 0
je 0x65122a77
cmp dword [edx + 8], 0
je 0x65122a77
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x18], 0
je 0x65122aba
mov ecx, dword [eax + 4]
cmp ecx, esi
jne 0x65122b04
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x65122b04
test esi, esi
jne 0x65122a6c
test ebx, ebx
je 0x65122b04
lea esi, [ecx + 0x18]
lea ebx, [eax + 0x18]
jmp 0x65122b04
cmp dword [ebp - 0x20], 0
je 0x65122a8b
mov dword [edx + 4], esi
mov edx, dword [edi + 0xb18]
mov dword [edx + 8], ebx
jmp 0x65122a41
cmp dword [ebp - 0x18], 0
je 0x65122a9f
mov dword [edx + 4], esi
mov eax, dword [edi + 0xb18]
mov dword [eax + 8], ebx
jmp 0x65122a41
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 4]
add esi, 0x18
mov dword [edx + 4], esi
mov edx, dword [eax + 8]
mov esi, dword [edi + 0xb18]
add edx, 0x18
mov dword [esi + 8], edx
cmp ecx, 0x20
jne 0x65122acd
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
add esi, 0x18
add ebx, 0x18
jmp 0x65122add
test ecx, ecx
mov eax, dword [edi + 0xb18]
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
jle 0x65122b04
xor edx, edx
test ecx, ecx
jle 0x65122b04
mov eax, dword [ebp - 0x24]
add eax, 8
cmp dword [eax - 4], esi
je 0x65122afe
cmp dword [eax], ebx
je 0x65122afe
add edx, 1
add eax, 0xc
cmp edx, ecx
jl 0x65122ae9
jmp 0x65122b04
add esi, 0x18
add ebx, 0x18
xor eax, eax
push eax
lea ecx, [ebp - 0x3c]
push ecx
push eax
push 0x30
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [edi + 0xb04], 0
lea eax, [edi + 0xb04]
jne 0x65122b67
push eax
push 0x65154bcc
push 0x65154bcc
call fcn.651088b0
mov eax, dword [edi + 0xb04]
mov edx, dword [eax]
add esp, 0xc
push 0
push 0
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [edi + 0xb04]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x7c]
push str.window
push eax
call edx
mov eax, dword [edi + 0xb04]
test eax, eax
je 0x65122b83
mov ecx, dword [eax]
lea edx, [edi + 0xb08]
push edx
push eax
mov eax, dword [ecx + 0x300]
call eax
mov eax, dword [edi + 0xb14]
mov ecx, 2
sub ecx, dword [edi + 0xb0c]
mov edx, 2
add dword [ebp - 0x38], ecx
sub edx, dword [edi + 0xb08]
mov ecx, dword [ebp - 0x30]
add dword [ebp - 0x3c], edx
lea edx, [ecx + eax - 2]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edi + 0xb10]
lea eax, [ecx + eax - 2]
mov ecx, dword [ebp - 0x10]
add ecx, esi
cmp ecx, eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
jg 0x65122bf3
mov edx, dword [ebp + 0xc]
add edx, ebx
cmp edx, dword [ebp - 0x30]
jle 0x65122bec
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 0x30]
cmp ecx, eax
mov ebx, 0x18
jle 0x65122c19
add eax, 0xffffffe8
mov dword [ebp + 0xc], eax
jmp 0x65122c19
cmp ecx, eax
mov edx, dword [ebp - 0x30]
jle 0x65122c19
mov ecx, dword [ebp - 0x10]
mov esi, 0x18
mov ebx, esi
add ecx, ebx
cmp ecx, eax
jle 0x65122c09
add eax, 0xffffffe8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, 0x18
cmp eax, edx
jle 0x65122c19
add edx, 0xffffffe8
mov dword [ebp + 0xc], edx
mov eax, dword [edi + 0xb18]
test eax, eax
je 0x65122c2f
mov dword [eax + 4], esi
mov ecx, dword [edi + 0xb18]
mov dword [ecx + 8], ebx
cmp dword [ebp - 0x28], 0
je 0x65122c3e
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [edx + ebx]
push eax
add ecx, esi
push ecx
push ebx
push esi
push str.login_rect:_d___d___d___d
push str.MainFrame
push 3
push str.func
push 0x467
push str.file
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
call fcn.6511de10
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x28
test eax, eax
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], edx
mov byte [ebp - 4], 0
je 0x65122c9d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc