Function at 0x43b3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x452b95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ec
push ebx
push ebp
push esi
xor ebx, ebx
cmp dword [esp + 0x20c], ebx
mov esi, ecx
push edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0x48], ebx
je 0x43b41f
mov dword [esi + 0x18], 0x4599d4
mov dword [esi + 4], 0x455aac
mov dword [esi + 0xc], 0x4599cc
mov dword [esi + 0x14], 0x4599c4
mov dword [esi + 0x84], 0x455454
mov edi, 1
mov dword [esp + 0x204], ebx
mov dword [esp + 0x48], edi
jmp 0x43b424
mov edi, 1
push ebx
push ebx
push esi
mov ecx, esi
call fcn.0043b040
mov eax, dword [esi + 0x18]
mov dword [esi], 0x459998
mov dword [esi + 8], 0x459988
mov dword [esi + 0x10], 0x459968
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 0x18], 0x459948
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x6c]
mov dword [eax + esi + 0x14], ecx
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], ebx
mov dword [esp + 0x204], edi
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3d], bl
mov byte [esi + 0x3e], bl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
push ebx
mov byte [esp + 0x208], 4
mov dword [esi + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 0xb4]
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0xe0], 1
je 0x43b4b7
movzx eax, word [esp + 0xe4]
mov dword [esi + 0x34], eax
jmp 0x43b4ba
mov dword [esi + 0x34], edi
mov ebp, dword [esp + 0x20c]
lea ecx, [esp + 0xac]
push ebp
push ecx
mov byte [esi + 0x3c], bl
mov byte [esi + 0x3f], 1
call fcn.004151a0
mov edi, dword [eax]
add esp, 8
mov dword [esp + 0x44], edi
mov dword [eax], 0xffffffff
movzx eax, byte [esi + 0x3c]
mov edx, dword [edi]
mov edx, dword [edx + 0x20]
push eax
push str.console
mov ecx, edi
mov byte [esp + 0x20c], 5
call edx
mov byte [esi + 0x3c], al
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ebx
push str.help
mov ecx, edi
call edx
mov ecx, dword [esi + 0x30]
test eax, eax
setne dl
mov byte [esi + 0x3e], dl
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43b535
cmp word [eax + 0x5c], 3
sete al
mov byte [esi + 0x3d], al
cmp byte [esi + 0x3d], bl
jne 0x43b606
cmp byte [esi + 0x3c], bl
jne 0x43b54b
cmp dl, bl
je 0x43b5f7
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.MSVCR80.dll_freopen]
je 0x43b576
cmp eax, ebx
je 0x43b576
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x43b58f
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
push 0x459938
push str.CONOUT_
call ebp
add esp, 0xc
push 0xfffffffffffffff5
call edi
cmp eax, 0xffffffff
je 0x43b5a8
cmp eax, ebx
je 0x43b5a8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x43b5c1
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x20
push eax
push 0x459938
push str.CONOUT_
call ebp
add esp, 0xc
push 0xfffffffffffffff6
call edi
cmp eax, 0xffffffff
je 0x43b5da
cmp eax, ebx
je 0x43b5da
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x43b5f0
call dword [sym.imp.MSVCR80.dll___iob_func]
push eax
push 0x459938
push str.CONIN_
call ebp
add esp, 0xc
mov ebp, dword [esp + 0x20c]
cmp byte [esi + 0x3d], bl
jne 0x43b606
cmp byte [esi + 0x3c], bl
jne 0x43b606
cmp byte [esi + 0x3e], bl
je 0x43b613
push 1
push 0x43ade0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov edi, dword [esi + 0x38]
cmp edi, ebp
je 0x43b64b
cmp ebp, ebx
mov dword [esi + 0x38], ebp
je 0x43b634
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + ebp + 4]
lea ecx, [edx + ebp + 4]
mov edx, dword [eax + 4]
call edx
cmp edi, ebx
je 0x43b64b
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 4]
mov eax, dword [edx + 8]
lea ecx, [ecx + edi + 4]
call eax
mov ecx, dword [esi + 0x30]
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
push 1
push ecx
call ebp
mov edi, eax
cmp edi, ebx
jne 0x43b6d7
push 0x104
lea edx, [esp + 0xfc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xf8]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_strrchr]
add esp, 8
cmp eax, ebx
jne 0x43b69e
lea eax, [esp + 0xf8]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x43b694
mov ecx, dword [str..ico]
push 0x50
mov dword [eax], ecx
mov dl, byte [0x45992c]
push ebx
push ebx
mov byte [eax + 4], dl
mov ecx, dword [esi + 0x30]
push 1
lea eax, [esp + 0x108]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadImageA]
mov edi, eax
cmp edi, ebx
jne 0x43b6d7
push 0x7f00
push ebx
call ebp
mov edi, eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0x40
mov dword [esp + 0x98], ebx
mov dword [esp + 0x60], 0x455778
push esi
lea edx, [esp + 0x64]
push str.CrystalSpaceWin32__p
push edx
mov byte [esp + 0x210], 6
call fcn.00420ee0
add esp, 0xc
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
push ebx
mov ebp, eax
call fcn.0044d530
add esp, 4
test al, al
mov eax, dword [esp + 0x68]
je 0x43b7cb
lea ecx, [eax + eax + 2]
push ecx
call fcn.004079bb
mov ecx, dword [esp + 0x68]
add esp, 4
cmp dword [esp + 0x98], ebx
mov dword [esi + 0x7c], eax
jne 0x43b759
cmp ecx, ebx
jne 0x43b761
xor ecx, ecx
jmp 0x43b761
cmp ecx, ebx
jne 0x43b761
lea ecx, [esp + 0x74]
mov edx, dword [esp + 0x68]
push 0xffffffffffffffff
push ecx
add edx, 1
push edx
push eax
call fcn.0041c870
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x30]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0x23
mov dword [esp + 0x20], 0x43a4a0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 8
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_RegisterClassExW]
jmp 0x43b84f
add eax, 1
push eax
call fcn.004079bb
mov edx, dword [esp + 0x64]
mov dword [esi + 0x7c], eax
mov eax, dword [edx + 0x18]
add esp, 4
lea ecx, [esp + 0x60]
call eax
mov edx, dword [esi + 0x7c]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
cmp cl, bl
jne 0x43b7f0
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x30]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], 0x23
mov dword [esp + 0x20], 0x43a4a0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 8
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ebp, dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
test ax, ax
setne al
cmp al, bl
jne 0x43b899
push ebx
push ebx
call ebp
push str.Failed_to_register_window_class_
push str.FATAL:__s_n
call fcn.00422810
push str.Failed_to_register_window_class_
call fcn.0041cdc0
add esp, 0xc
push 0x10
push str.Fatal_Error
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x38]
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.004150e0
mov edi, dword [eax]
mov dword [esp + 0xa4], edi
mov dword [eax], 0xffffffff
mov eax, dword [esi + 0x38]
push eax
mov byte [esp + 0x210], 7
call fcn.004452d0
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.open
push eax
call fcn.00409500
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.close
push eax
call fcn.00409500
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.commandlinehelp
push eax
call fcn.00409500
mov dword [esp + 0x7c], eax
add esp, 0x24
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x60], 0xffffffff
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esi + 0x10]
push eax
mov ecx, edi
call edx
mov eax, dword [esi + 0x38]
push str.crystalspace.application.open
push eax
call fcn.00409500
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.close
push eax
call fcn.00409500
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.frame
push eax
call fcn.00409500
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x38]
push eax
call fcn.004452d0
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x38]
push eax
call fcn.004452f0
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x38]
push eax
call fcn.00445310
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x38]
push eax
call fcn.00445330
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.quit
push eax
call fcn.00409500
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.commandlinehelp
push eax
call fcn.00409500
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.focus.gained
push eax
call fcn.00409500
add esp, 0x40
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x38]
push str.crystalspace.application.focus.lost
push eax
call fcn.00409500
push 0xa4
mov dword [esi + 0x78], eax
call fcn.00407a16
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x204], 8
je 0x43ba0a
mov ecx, dword [esp + 0x20c]
push 1
push ecx
mov ecx, eax
call fcn.0044ed10
jmp 0x43ba0c
xor eax, eax
mov ecx, dword [esi + 0x48]
cmp ecx, ebx
mov byte [esp + 0x204], 7
mov dword [esi + 0x48], eax
je 0x43ba31
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 4]
mov edx, dword [eax + ecx + 0x30]
lea ecx, [eax + ecx + 0x30]
mov eax, dword [edx + 8]
call eax
cmp dword [esi + 0x48], ebx
jne 0x43ba70
push ebx
push ebx
call ebp
push str.Failed_to_create_keyboard_driver_
push str.FATAL:__s_n
call fcn.00422810
push str.Failed_to_create_keyboard_driver_
call fcn.0041cdc0
add esp, 0xc
push 0x10
push str.Fatal_Error
mov ebp, eax
push ebp
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x20c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push str.iKeyboardDriver
call eax
mov ebp, eax
mov dword [esp + 0xa4], ebp
cmp ebp, ebx
mov byte [esp + 0x204], 9
je 0x43bb0e
push ecx
mov eax, esp
mov dword [eax], ebp
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
mov dword [esp + 0x14], esp
call eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.0043a0f0
mov ecx, dword [eax]
add esp, 8
mov dword [esp + 0x10], ecx
mov dword [eax], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
push ecx
mov ecx, edi
mov byte [esp + 0x208], 0xa
call eax
mov ecx, dword [esp + 0x20c]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push str.iKeyboardDriver
push ebp
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0x204], 9
je 0x43bb0e
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esi + 0x48]
cmp eax, ebx
jne 0x43bb19
xor eax, eax
jmp 0x43bb23
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 4]
lea eax, [edx + eax + 0x30]
mov ecx, dword [esp + 0x20c]
mov edx, dword [ecx]
push str.iKeyboardDriver
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
mov byte [esp + 0x204], 7
je 0x43bb4d
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + edi + 4]
lea ecx, [edx + edi + 4]
mov edx, dword [eax + 8]
mov byte [esp + 0x204], 6
call edx
lea ecx, [esp + 0x60]
mov byte [esp + 0x204], 5
mov dword [esp + 0x60], 0x45569c
call fcn.0041e9c0
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov byte [esp + 0x204], 4
call edx
mov ecx, dword [esp + 0x1fc]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1f8
ret 8