Function at 0x42ee10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430910
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x43900c]
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
push 0
mov dword [0x4393d8], 0x30
mov dword [0x4393dc], 0x40
mov dword [0x4393e0], 0x42e460
mov dword [0x4393e4], 0
mov dword [0x4393e8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x4393ec], eax
push 0x4393d8
movups xmmword [0x4393f0], xmm0
mov dword [0x439400], 0x436930
mov dword [0x439404], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x4393ec]
push 0
push 0
push 0x37
push 0xa5
push 0x64
push 0x64
push 0x80000000
push str.komi_san_resolver
push str.komi_san_resolver_class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x4393d0], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4393d0]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x20
mov dword [ebp - 4], 0
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x4393cc], ecx
test ecx, ecx
je 0x42ef91
push 0x4393d4
push 0x439408
push 0x40
push dword [0x4393d0]
xorps xmm0, xmm0
mov dword [0x43941c], 0
push 1
movlpd qword [0x439408], xmm0
movlpd qword [0x439414], xmm0
mov dword [0x439424], 0
movlpd qword [0x439434], xmm0
mov dword [0x439428], 1
mov dword [0x439420], 1
mov dword [0x439410], 0
mov dword [0x43942c], 1
mov dword [0x439430], 0x50
mov dword [0x43943c], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.0042e710
cmp byte [0x439028], 0
je 0x42f222
call fcn.0042eb10
mov dword [ebp - 4], 1
mov edx, 0x439028
mov eax, dword [0x4393a8]
mov ecx, str.komi_san_resolver
push 0x126
or dword [eax + 0x4714], 3
mov dword [eax + 0x4724], 0
mov dword [eax + 0x4728], 0
mov dword [eax + 0x472c], 0
mov dword [eax + 0x4730], 0
mov dword [eax + 0x4718], 1
mov dword [eax + 0x4734], 0x43250000
mov dword [eax + 0x4738], 0x425c0000
mov dword [eax + 0x471c], 1
call fcn.0040bf60
add esp, 4
call fcn.0042da20
call fcn.0040e850
mov dword [ebp - 4], 2
call fcn.00408ef0
mov ecx, dword [0x4393d4]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4393d4]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4393d4]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4393d4]
push 0
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
push 0xff000000
push 3
push 0
push 0
push ecx
call dword [eax + 0xac]
mov eax, dword [0x4393d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x42f0d9
call fcn.004092d0
mov eax, dword [0x4393a8]
xor ecx, ecx
mov eax, dword [eax + 0x47f0]
mov eax, dword [eax]
add eax, 0x38
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00428c30
mov eax, dword [0x4393d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4393d4]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x42f10b
mov eax, dword [0x4393d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x42f10b
call fcn.0042e640
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0042ed60
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
cmp esi, 0xff67697f
jne 0x42f130
cmp ebx, 0x7fffffff
je 0x42f157
cmp ebx, 0x7fffffff
jg 0x42f146
jl 0x42f142
cmp esi, 0xff67697f
jae 0x42f146
or al, 0xff
jmp 0x42f148
mov al, 1
test al, al
jns 0x42f157
add esi, 0x989680
adc ebx, 0
jmp 0x42f15f
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x30]
call fcn.0042ed60
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp esi, ecx
jne 0x42f17c
cmp ebx, eax
je 0x42f215
cmp ebx, eax
jg 0x42f18a
jl 0x42f186
cmp esi, ecx
jae 0x42f18a
or al, 0xff
jmp 0x42f18c
mov al, 1
test al, al
jle 0x42f215
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.004300e0
mov esi, eax
mov ecx, ebx
mov eax, dword [ebp - 0x24]
mov edi, edx
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
sbb ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
mov edx, ecx
mov ecx, eax
call fcn.00430190
comisd xmm0, xmmword [0x436a38]
jbe 0x42f1db
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x42f1e1
add esi, dword [ebp - 0x34]
adc edi, dword [ebp - 0x38]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.0042ff50
mov dword [ebp - 0x20], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x1c], edx
sub esi, eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.MSVCP140.dll__Thrd_sleep]
mov esi, dword [ebp - 0x24]
add esp, 4
jmp 0x42f162
cmp byte [0x439028], 0
jne 0x42efa3
call fcn.0042e8d0
mov dword [ebp - 4], 3
mov ecx, dword [0x4393d4]
test ecx, ecx
je 0x42f248
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4393d4], 0
mov ecx, dword [0x4393cc]
test ecx, ecx
je 0x42f262
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4393cc], 0
push dword [0x4393d0]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x4393ec]
push dword [0x439400]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
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.0042f2a5
mov esp, ebp
pop ebp
ret 0x10