Function at 0x404910
Capabilities:
Terminate process

Disassembly:
sub esp, 0x24
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x20], eax
mov ecx, dword [str.public]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
push 1
mov dword [esp + 0x14], eax
mov dword [ecx + 0x14c], 0xa
mov dword [0x5b607c], 4
mov dword [0x65c978], eax
mov dword [0x67d27c], 0x65c140
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x401610
call fcn.005743b0
push 0x5a85d4
call fcn.00405ff0
mov ebx, dword [sym.imp.MSVCR90.dll___iob_func]
mov esi, 1
add esp, 8
cmp edi, esi
mov dword [esp + 0x18], eax
jle 0x404b4d
mov ebx, dword [sym.imp.MSVCR90.dll_atoi]
lea ecx, [ecx]
mov eax, dword [ebp + esi*4]
cmp byte [eax], 0
je 0x404b3e
call fcn.00401110
movsx eax, al
add eax, 0xfffffffb
cmp eax, 0xf
ja case.0x4049c1.15
jmp dword [eax*4 + 0x405250]
mov dword [esp + 0x10], 1
jmp 0x404b35
or dword [0x67d29c], 0x100
jmp 0x404b35
or dword [0x67d29c], 1
jmp 0x404b35
mov dword [0x67d294], 1
jmp 0x404b35
inc esi
cmp esi, edi
je case.0x4049c1.15
mov edx, dword [ebp + esi*4]
push edx
call fcn.00406560
add esp, 4
jmp 0x404b35
mov eax, dword [ebp + esi*4]
add eax, 2
push eax
call ebx
add esp, 4
jmp 0x404b35
mov ecx, dword [ebp + esi*4]
add ecx, 2
push ecx
call ebx
add esp, 4
jmp 0x404b35
inc esi
cmp esi, edi
je case.0x4049c1.15
mov edx, dword [ebp + esi*4]
push edx
call ebx
add esp, 4
mov dword [0x67d284], eax
mov dword [0x67d298], 1
jmp 0x404b35
inc esi
cmp esi, edi
je case.0x4049c1.15
mov eax, dword [ebp + esi*4]
push eax
call ebx
add esp, 4
mov dword [0x67d288], eax
jmp 0x404b35
inc esi
cmp esi, edi
je case.0x4049c1.15
mov ecx, dword [ebp + esi*4]
push 0x2d
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
mov edx, dword [ebp + esi*4]
push edx
mov edi, eax
call ebx
add esp, 0xc
mov dword [0x67d28c], eax
test edi, edi
je 0x404abb
inc edi
push edi
call ebx
add esp, 4
mov dword [0x67d290], eax
jmp 0x404b31
add eax, 0x64
mov dword [0x67d290], eax
jmp 0x404b31
inc esi
cmp esi, edi
je case.0x4049c1.15
mov eax, dword [ebp + esi*4]
push eax
call ebx
add esp, 4
mov dword [0x67d2a0], eax
jmp 0x404b35
push 0x200
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x404b31
push edi
push str.Transbase_Database_System
call fcn.00405720
add esp, 8
push edi
push 0x5a8500
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x14
mov edi, dword [esp + 0x38]
cmp dword [0x65c184], 0
jne 0x404b47
inc esi
cmp esi, edi
jl 0x4049a0
mov ebx, dword [sym.imp.MSVCR90.dll___iob_func]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
xor edi, edi
cmp eax, edi
je 0x404be5
push eax
push 0x5a85d0
call ebx
add eax, 0x40
push eax
call ebp
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.MSVCR90.dll___iob_func]
push ecx
push str.Usage:__s_n
call ebx
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call edi
add esp, 0xc
xor esi, esi
jmp 0x404bb0
mov eax, dword [esi + 0x5b6098]
test eax, eax
je 0x404bd2
mov edx, dword [esi + 0x5b6090]
push eax
push edx
push str.______10.10s__s_n
call ebx
add eax, 0x40
push eax
call edi
add esp, 0x10
add esi, 0xc
cmp esi, 0x90
jb 0x404bb0
push 1
call dword [sym.imp.MSVCR90.dll_exit]
call fcn.00405650
push eax
push str._s_Kernel
call fcn.00406450
mov eax, dword [str.public]
add esp, 8
cmp dword [0x5b607c], 4
mov dword [eax + 0x6f9], 0x4018a0
jne 0x405238
mov dword [0x65c184], edi
cmp dword [0x67d288], edi
jne 0x404d27
cmp dword [0x67d284], edi
jne 0x404d27
push str.TRANSBASE
call fcn.0056c440
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x404c6a
push str.TRANSBASE_Variable_not_set
push 0x5a8500
call fcn.00406790
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
mov dword [0x65c184], 0x1392
jmp 0x404cb1
cmp dword [0x65c184], edi
jne 0x404cb1
push esi
call fcn.0056ad60
add esp, 4
test eax, eax
je 0x404c92
push esi
push 0x709
call fcn.004073f0
add esp, 8
mov dword [0x65c184], eax
cmp dword [0x65c184], edi
jne 0x404cb1
push edi
push 0x5b6080
call fcn.004128b0
add esp, 8
mov dword [0x65c184], eax
cmp eax, edi
je 0x404cdb
call fcn.00406790
push eax
push 0x5a8500
call ebx
add eax, 0x40
push eax
call ebp
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0x10
push 1
call dword [sym.imp.MSVCR90.dll_exit]
cmp dword [0x67d294], edi
je 0x404d04
push str.Kernel_is_running_n
call ebx
add eax, 0x40
push eax
call ebp
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 0xc
jmp 0x404ea0
call ebx
mov esi, dword [sym.imp.MSVCR90.dll_fclose]
add eax, 0x20
push eax
call esi
call ebx
add eax, 0x40
push eax
call esi
call ebx
push eax
call esi
add esp, 0xc
jmp 0x404ea0
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [0x65c978], edi
call fcn.00412330
mov eax, dword [0x67d288]
add esp, 8
cmp eax, edi
jne 0x404d49
mov eax, dword [0x67d284]
mov edx, dword [0x67d27c]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00411e70
add esp, 0xc
mov dword [0x65c184], eax
cmp eax, edi
je 0x404d7c
cmp dword [0x67d294], edi
je 0x404cd3
jmp 0x404cb1
cmp eax, edi
jne 0x404ddd
push 0x65c180
call fcn.00414550
mov ecx, dword [0x65c978]
mov edx, dword [0x67d27c]
push eax
push edi
push ecx
push edx
call fcn.00560310
add esp, 0x14
mov dword [0x65c184], eax
cmp eax, edi
jne 0x404ddd
mov ecx, dword [0x65c180]
cmp ecx, 0x34
je 0x404dd0
cmp ecx, 5
je 0x404dd0
push ecx
push 0x2b04
call fcn.004073f0
mov ecx, dword [0x65c180]
add esp, 8
mov dword [0x65c184], eax
cmp eax, edi
jne 0x404ddd
cmp ecx, 0x34
je 0x404f66
push 5
call fcn.0056be70
add esp, 4
cmp dword [0x65c184], edi
jne 0x404e23
mov eax, dword [str.public]
mov ecx, dword [0x65c180]
add eax, 0x148
push eax
push ecx
call fcn.004011e0
add esp, 8
mov dword [0x65c184], eax
cmp eax, edi
je 0x404e23
mov edx, dword [0x67d27c]
push edx
call fcn.00411c20
add esp, 4
jmp 0x404e86
mov eax, dword [str.public]
cmp dword [eax + 0x148], 0xffffffff
jne 0x404e3c
mov dword [eax + 0x148], edi
mov eax, dword [str.public]
test dword [eax + 0x148], 0x40000000
je 0x404e5e
and dword [eax + 0x148], 0xbfffffff
mov eax, dword [str.public]
mov esi, 1
jmp 0x404e60
xor esi, esi
cmp dword [0x65c184], edi
je 0x404f99
mov eax, dword [0x65c180]
push eax
call fcn.00401280
mov ecx, dword [0x67d27c]
push ecx
call fcn.00411c20
add esp, 8
cmp dword [0x67d288], edi
jne 0x404bdd
cmp dword [0x67d284], edi
jne 0x404bdd
mov edi, edi
call fcn.00405650
push eax
push str._s_Kernel
call fcn.00406450
mov edx, dword [0x5b6080]
push 0xffffffffffffffff
push edx
mov dword [0x65c978], 1
mov dword [0x65c184], edi
call fcn.004118f0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x404eef
push str.localhost
push 0x2b0e
call fcn.004073f0
add esp, 8
mov dword [0x65c184], eax
jmp 0x404ef4
mov eax, dword [0x65c184]
cmp eax, edi
jne 0x404f27
mov eax, dword [0x67d27c]
mov ecx, dword [0x5b6080]
push edi
push eax
push edi
push ecx
call fcn.00412070
add esp, 0x10
mov dword [0x65c184], eax
cmp eax, edi
je 0x404d7c
cmp eax, 0x2b05
je 0x404d78
cmp dword [0x67d294], edi
je 0x404f56
call fcn.00406790
push eax
push 0x5a8500
call ebx
add eax, 0x40
push eax
call ebp
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
mov eax, dword [0x65c184]
add esp, 0x10
cmp eax, 0x2b0e
jne 0x404ea0
jmp 0x404bdd
push 0x34
call fcn.004011e0
mov edx, dword [0x65c180]
push edx
call fcn.00401280
mov eax, dword [0x67d27c]
push eax
call fcn.00411c20
mov ecx, dword [0x5b6080]
push ecx
call fcn.00410d10
add esp, 0x10
push edi
jmp 0x404cd5
cmp dword [0x67d288], edi
jne 0x404fe9
cmp dword [0x67d284], edi
jne 0x404fe9
cmp dword [esp + 0x10], edi
je 0x404fe9
cmp esi, edi
jne 0x404fe1
push 0x5de0
call fcn.004073f0
mov edx, dword [0x65c180]
push edx
mov dword [0x65c184], eax
call fcn.00401280
mov eax, dword [0x67d27c]
push eax
call fcn.00411c20
add esp, 0xc
jmp 0x404cd3
mov dword [0x65c97c], edi
jmp 0x40503b
mov edx, dword [0x67d290]
mov ecx, dword [0x67d28c]
push 0x65c9c4
push edx
push 0x65c97c
mov dword [0x65c97c], ecx
call fcn.00412350
add esp, 0xc
mov dword [0x65c184], eax
cmp eax, edi
je 0x405036
mov eax, dword [0x65c180]
push eax
call fcn.00401280
mov ecx, dword [0x67d27c]
push ecx
call fcn.00411c20
add esp, 8
jmp 0x404cd3
mov eax, dword [str.public]
cmp esi, edi
je 0x405049
or dword [eax + 0x14c], 0x40000000
cmp dword [0x67d288], edi
jne 0x40506a
cmp dword [0x67d284], edi
jne 0x40506a
lea edx, [esp + 0x14]
push edx
call fcn.00565c80
add esp, 4
test eax, eax
je 0x40506e
mov dword [esp + 0x14], edi
call fcn.0056c2e0
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [0x67d288], edi
lea edx, [esp + 0x14]
setne al
push edx
lea edx, [esp + 0x20]
movzx ecx, ax
mov eax, dword [str.public]
add eax, 0x14c
push eax
mov eax, dword [0x65c180]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x28]
push ecx
push edx
push 0x65c97c
push eax
call fcn.00401280
add esp, 0x18
test eax, eax
je 0x4050ce
mov ecx, dword [0x67d27c]
push ecx
call fcn.00411c20
add esp, 4
jmp 0x404cd3
cmp esi, edi
je 0x40514b
push 0x65c180
call fcn.00414550
mov edx, dword [0x65c978]
push eax
mov eax, dword [0x67d27c]
push edi
push edx
push eax
call fcn.00560310
add esp, 0x14
cmp dword [0x65c180], 0x3c
jne 0x4050ba
lea ecx, [esp + 0x24]
push ecx
push 0x3c
call fcn.004011e0
add esp, 8
test eax, eax
jne 0x4050ba
cmp dword [esp + 0x10], edi
je 0x405120
test byte [esp + 0x2c], 2
je 0x404fb3
mov edx, dword [0x65c180]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00401280
add esp, 8
test eax, eax
je 0x40514b
mov eax, dword [0x67d27c]
push eax
call fcn.00411c20
add esp, 4
jmp 0x404cd3
mov edx, dword [str.public]
mov eax, dword [edx + 0x148]
xor ecx, ecx
cmp eax, 0xa
setne cl
mov dword [0x65c978], ecx
call fcn.00401170
mov dword [0x5b6088], eax
cmp dword [0x67d288], edi
jne 0x405224
cmp dword [0x67d284], edi
jne 0x4051ac
mov edx, dword [0x5b6080]
push edx
call fcn.00410d10
add esp, 4
cmp dword [0x67d288], edi
jne 0x405224
cmp dword [0x67d284], edi
jne 0x4051ac
cmp dword [esp + 0x10], edi
jne 0x405224
mov eax, dword [0x67d27c]
push eax
call fcn.00411c20
mov ecx, dword [0x65c9c4]
push 0x1e
push ecx
call fcn.004118f0
add esp, 0xc
push 1
test eax, eax
jle 0x404cd5
mov edx, dword [0x65c9c4]
push 0x65c980
push 0x1e
push edx
call fcn.00412070
add esp, 0x10
mov dword [0x65c184], eax
cmp eax, edi
jne 0x404cd3
mov eax, dword [0x65c9c4]
push eax
mov dword [0x67d27c], 0x65c980
mov dword [0x67d2ac], 1
call fcn.00410d10
add esp, 4
cmp dword [0x67d298], edi
jne 0x405224
call fcn.0056c1e0
call fcn.00404310
mov ecx, dword [0x67d27c]
push ecx
call fcn.00411c20
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00586584
add esp, 0x24
ret