Function at 0x401150
Capabilities:
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [esp + 0x234]
push ebx
push ebp
push esi
push edi
push 0
push 0x9000
push 4
push 0x50f0d4
push 0x5116c0
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x30], 0
call fcn.00480410
add esp, 0x14
push eax
call fcn.00480120
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x10], edi
jl 0x401323
push 4
push 0x20
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x24], 1
call fcn.00480330
add esp, 0x10
test eax, eax
jne 0x401323
mov cl, byte [esp + 0x20]
mov al, 0xfe
cmp cl, al
jne 0x401323
cmp byte [esp + 0x21], al
jne 0x401323
cmp byte [esp + 0x22], 2
jne 0x401323
cmp byte [esp + 0x23], 1
jne 0x401323
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x26]
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24c]
and ebp, 0xffff
and esi, 0xffff
cmp esi, eax
mov dword [esp + 0x18], ebp
jae 0x401257
mov ecx, dword [0x517424]
push eax
push esi
lea eax, [esp + 0x48]
push eax
push ecx
push str._n_s:_Fatal_error:_Error_message_file__s_had_only__d_error_messages__but_it_should_have_at_least__d_error_messages._nCheck_that_the_above_file_is_the_right_version_for_this_program__n_n
push 0x50b500
call fcn.004b5540
push 0x10
push edi
call fcn.00480170
push 0
call fcn.004282e0
add esp, 0x24
push 1
call fcn.004b544d
mov ebx, dword [esp + 0x248]
mov edx, dword [ebx]
push edx
call fcn.00480080
lea eax, [ebp + esi*4]
push 0
push eax
call fcn.0047fff0
add esp, 0xc
test eax, eax
mov dword [ebx], eax
jne 0x401288
mov dword [esp + 0x14], 2
jmp 0x401323
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esi + esi]
push ecx
lea edi, [eax + esi*4]
push edi
push edx
call fcn.00480330
add esp, 0x10
test eax, eax
jne 0x40131f
test esi, esi
mov ecx, edi
jbe 0x4012c9
lea esp, [esp]
mov ebp, dword [ebx]
xor edx, edx
mov dx, word [ecx]
add ecx, 2
add edx, edi
mov dword [ebp + eax*4], edx
inc eax
cmp eax, esi
jb 0x4012b0
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 4
push ebp
push edi
push eax
call fcn.00480330
add esp, 0x10
test eax, eax
jne 0x40131f
mov ecx, dword [esp + 0x1c]
mov eax, 1
cmp ecx, eax
jbe 0x401305
nop
lea esp, [esp]
mov esi, dword [ebx]
xor edx, edx
mov dx, word [esp + eax*2 + 0x2a]
inc eax
cmp eax, ecx
lea edx, [esi + edx*4]
mov dword [ebx + eax*4 - 4], edx
jb 0x4012f0
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.00480170
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
dec eax
je 0x40133b
dec eax
je 0x401334
mov esi, str._n_s:_Fatal_error:_Cant_find_messagefile__s_n_n
jmp 0x401340
mov esi, str._n_s:_Fatal_error:_Not_enough_memory_for_messagefile__s_n_n
jmp 0x401340
mov esi, str._n_s:_Fatal_error:_Cant_read_from_messagefile__s_n_n
cmp edi, 0xffffffff
je 0x401350
push 0x10
push edi
call fcn.00480170
add esp, 8
mov edx, dword [0x517424]
lea ecx, [esp + 0x40]
push ecx
push edx
push esi
push 0x50b500
call fcn.004b5540
push 0
call fcn.004282e0
add esp, 0x14
push 1
call fcn.004b544d
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.004805f0
test byte [0x511a84], 0x20
jne 0x401423
mov eax, dword [0x511184]
mov ecx, dword [eax + 0x44]
mov dword [str.File__s_not_found__Errcode:__d_], ecx
mov edx, dword [eax + 0x10]
mov dword [str.Cant_create_write_to_file__s__Errcode:__d_], edx
mov ecx, dword [eax + 0x60]
mov dword [str.Error_reading_file__s__Errcode:__d_], ecx
mov edx, dword [eax + 0x68]
mov dword [str.Error_writing_file__s__Errcode:__d_], edx
mov ecx, dword [eax + 0x5c]
mov dword [str.Error_on_close_of__s__Errcode:__d_], ecx
mov edx, dword [eax + 0x94]
mov dword [str.Out_of_memory__Needed__u_bytes_], edx
mov ecx, dword [eax + 0x2c]
mov dword [str.Error_on_delete_of__s__Errcode:__d_], ecx
mov edx, dword [eax + 0x64]
mov dword [str.Error_on_rename_of__s_to__s__Errcode:__d_], edx
mov ecx, dword [eax + 0x9c]
mov dword [str.Unexpected_eof_found_when_reading_file__s__Errcode:__d_], ecx
mov edx, dword [eax + 0x3c]
mov dword [str.Cant_lock_file__Errcode:__d_], edx
mov ecx, dword [eax + 0x48]
mov dword [str.Cant_read_dir_of__s__Errcode:__d_], ecx
mov edx, dword [eax + 0x34]
mov dword [str.Cant_get_stat_of__s__Errcode:__d_], edx
mov ecx, dword [eax + 0x38]
mov dword [str.Cant_get_working_dirctory__Errcode:__d_], ecx
mov edx, dword [eax + 0x4c]
mov dword [str.Cant_change_dir_to__s__Errcode:__d_], edx
mov eax, dword [eax + 0x54]
mov dword [str.Disk_is_full_writing__s._Waiting_for_someone_to_free_space...], eax
ret