Function at 0x401140
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [0x4054c4]
movups xmm0, xmmword [str.jeweha_chs.exe]
push esi
push edi
mov dword [esp + 0xb8], eax
mov ax, word [0x4054c8]
mov word [esp + 0xbc], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x44
push eax
push 0
push 0
push 4
push 0
push 0
movups xmmword [esp + 0xbc], xmm0
lea eax, [esp + 0xbc]
movq xmm0, qword [0x4054bc]
push 0
movq qword [esp + 0xd0], xmm0
xorps xmm0, xmm0
push eax
push 0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
call dword [0x40501c]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0x28
call dword [0x40502c]
push eax
call dword [0x405004]
test eax, eax
jne 0x401244
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00401415
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x40]
push eax
push str.SeDebugPrivilege
push 0
call dword [0x405008]
test eax, eax
jne 0x401273
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00401415
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0
push 0
push 0x10
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esp + 0x20]
mov dword [esp + 0x60], 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 2
call dword [section..rdata]
test eax, eax
jne 0x4012c7
mov eax, 4
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00401415
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
push 0x20
movaps xmmword [esp + 0x24], xmm0
call fcn.00401423
movups xmm0, xmmword [str.BGIFontHook.dll]
mov edx, eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x24], edx
add esp, 4
mov dword [esp + 0x34], 0xf
movups xmmword [edx], xmm0
push 0x40
movq xmm0, qword [0x405500]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x405508]
mov dword [edx + 0x18], ecx
mov ax, word [0x40550c]
mov word [edx + 0x1c], ax
xor eax, eax
mov word [edx + 0x1e], ax
mov eax, dword [esp + 0x34]
push 0x1000
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call dword [0x405018]
cmp dword [esp + 0x34], 7
lea edx, [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edi, eax
cmova edx, dword [esp + 0x20]
add ecx, ecx
push 0
push ecx
push edx
push edi
push esi
call dword [0x405030]
test eax, eax
jne 0x401366
lea esi, [eax + 5]
jmp 0x4013a3
push 0x405510
push str.Kernel32.dll
call dword [0x405020]
push eax
call dword [0x405014]
push 0
push 0
push edi
push eax
push 0
push 0
push esi
call dword [0x405024]
test eax, eax
jne 0x401397
lea esi, [eax + 1]
jmp 0x4013a3
push dword [esp + 0x14]
call dword [0x405028]
xor esi, esi
mov ecx, dword [esp + 0x34]
cmp ecx, 7
jbe 0x4013e1
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4013d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013d7
call dword [0x40510c]
push ecx
push edx
call fcn.00401453
add esp, 8
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00401415
mov esp, ebp
pop ebp
ret