Function at 0x4197b0
Capabilities:
Create thread
Set current directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48d411
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c6018]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6018]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.mfc100.dll_Ordinal_9475]
mov eax, dword [ebx + 0x20]
xor edi, edi
push edi
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_4344]
mov esi, eax
cmp esi, edi
je 0x419866
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_316]
push 0x65
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], edi
call dword [sym.imp.mfc100.dll_Ordinal_7581]
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], edi
je 0x419854
mov edx, dword [esi + 4]
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x800
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
push 0x10
push 0
push ecx
call edi
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, dword [ebx + 0x1108]
mov edx, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push edx
call esi
mov eax, dword [ebx + 0x1108]
push eax
mov eax, dword [ebx + 0x20]
push edi
push 0x80
push eax
call esi
push 0xffffffffffffffff
push 0x64
lea ecx, [ebx + 0xf4]
call dword [sym.imp.mfc100.dll_Ordinal_12720]
mov esi, 0xf
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
lea edx, [esp + 0x3c]
mov ecx, ebx
mov dword [esp + 0x68], 1
call fcn.0041c6f0
test eax, eax
jne 0x4198d3
push edi
call dword [sym.imp.MSVCR100.dll_exit]
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x4198e2
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov edi, 7
mov eax, 0x4bb750
lea esi, [esp + 0x20]
mov byte [esp + 0x20], 0
call fcn.00402610
push 0xe
mov eax, str.LuaThreadEvent
mov ecx, esi
mov byte [esp + 0x6c], 2
call fcn.00409fe0
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x419929
mov ecx, esi
xor edx, edx
cmp edx, dword [0x4d48d4]
push ecx
push edx
sbb eax, eax
and eax, 0x4d48d4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x144], eax
mov dword [ebx + 0xec], 0
call fcn.00405140
test eax, eax
jne 0x419977
push eax
push 0x4bb8d8
push 0x4bb8f0
mov ecx, ebx
call dword [sym.imp.mfc100.dll_Ordinal_7871]
push 0
call dword [sym.imp.MSVCR100.dll_exit]
push 1
push ebx
call fcn.0041b780
push 0
test eax, eax
jne 0x41999a
push 0
push 0x4bb924
call dword [sym.imp.mfc100.dll_Ordinal_1982]
push 0
call dword [sym.imp.MSVCR100.dll_exit]
push ebx
call fcn.0041b780
test eax, eax
jne 0x4199a7
push eax
jmp 0x419985
call dword [sym.imp.mfc100.dll_Ordinal_1939]
test eax, eax
je 0x4199bc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x7c]
call eax
jmp 0x4199be
xor eax, eax
cmp dword [eax + 0x20], 0
je 0x4199cd
call fcn.0041dab0
mov ebx, dword [esp + 0x18]
lea edi, [ebx + 0x170]
call fcn.004115f0
test eax, eax
je 0x419992
push ebx
call fcn.0041b330
test eax, eax
jne 0x4199e9
push eax
jmp 0x419985
mov ecx, ebx
call fcn.0041b4a0
test eax, eax
je 0x419992
lea ecx, [ebx + 0x1468]
call fcn.004192f0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x419a11
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov byte [esp + 0x68], 3
test esi, esi
je 0x419992
lea ecx, [ebx + 0x110c]
call fcn.00403a60
push 0
test al, al
jne 0x419a62
push 0
push str.js.SetDocument___failed.
call dword [sym.imp.mfc100.dll_Ordinal_1982]
mov byte [esp + 0x68], 2
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
lea ecx, [esp + 0x20]
call fcn.00401fc0
lea ecx, [esp + 0x3c]
call fcn.00401fc0
xor eax, eax
jmp 0x419b7a
sub esp, 0x1c
mov eax, str.ABCSafePop
mov ecx, esp
mov dword [esp + 0x3c], esp
call fcn.00401f80
lea ecx, [ebx + 0x1394]
mov ebx, 6
call fcn.00408a20
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 0x14]
push edx
push 0
push edi
push 0x41ace0
push 0
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x41a6e0
push 0
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
push 0
push edi
push 0x41a870
push 0
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x20]
push 0
push 0xbb8
push 3
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ebx, dword [sym.imp.MSVCR100.dll__time64]
push 0
call ebx
add esp, 4
mov dword [edi + 0x1100], eax
mov dword [edi + 0x1104], edx
add dword [edi + 0x1100], 0xfffffffd
push 0xffffffffffffffe6
adc dword [edi + 0x1104], 0xffffffff
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetClassLongA]
mov ecx, dword [edi + 0x20]
or eax, 0x20000
push eax
push 0xffffffffffffffe6
push ecx
call dword [sym.imp.USER32.dll_SetClassLongA]
push 0
call ebx
mov dword [edi + 0x10f8], eax
xor eax, eax
mov dword [edi + 0x145c], eax
mov dword [edi + 0x1460], eax
mov byte [esp + 0x6c], 2
mov dword [edi + 0x10fc], edx
mov edx, dword [esi]
mov eax, dword [edx + 8]
add esp, 4
push esi
call eax
lea ecx, [esp + 0x20]
call fcn.00401fc0
lea ecx, [esp + 0x3c]
call fcn.00401fc0
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00449013
mov esp, ebp
pop ebp
ret