Function at 0x415730
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x810
mov eax, dword [esp + 0x820]
lea ebx, [esp + 0x10]
mov dword [esp + 4], 0x400
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [0xde84ac]
mov dword [esp + 8], eax
call fcn.00404e10
mov dword [esp + 4], 0x5055e4
mov dword [esp], ebx
call fcn.00445e10
test eax, eax
je 0x4157b0
mov dword [esp], eax
lea esi, [esp + 0x410]
call sub.msvcrt.dll_fclose
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, esi
mov dword [eax], 0x6b61622e
mov byte [eax + 4], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_rename
mov dword [esp + 4], 0x5055e6
mov dword [esp], ebx
call fcn.00445e10
mov esi, eax
test eax, eax
je 0x415d29
mov dword [esp + 4], 0x5055e8
mov ebx, 0x501400
mov dword [esp], eax
call fcn.0040af90
mov dword [esp + 4], str._Automatic_option_dump_n_n
mov dword [esp], esi
call fcn.0040af90
jmp 0x415823
mov dword [esp + 4], str.Y:_s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
add ebx, 0x14
cmp ebx, 0x50238c
je 0x41585e
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x415818
mov dword [esp + 8], eax
mov dword [esp + 4], str._Option__s_n
mov dword [esp], esi
call fcn.0040af90
mov eax, dword [ebx]
cmp byte [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
jne 0x4157f8
mov dword [esp + 4], str.X:_s_n
mov dword [esp], esi
call fcn.0040af90
jmp 0x415808
mov dword [esp], esi
mov edi, str.Msg_Chat
mov ebx, 1
mov dword [esp + 4], 0x50561e
call fcn.0040af90
jmp 0x415975
mov eax, dword [str.Display_equip_inven]
test eax, eax
je 0x415897
test byte [ebx*4 + 0xdfde40], 2
jne 0x415bf0
mov eax, dword [str.Display_character]
test eax, eax
je 0x4158ae
test byte [ebx*4 + 0xdfde40], 4
jne 0x415c40
mov eax, dword [str.Display_non_chat_messages]
test eax, eax
je 0x4158c5
test byte [ebx*4 + 0xdfde40], 8
jne 0x415b50
mov eax, dword [str.Display_all_messages]
test eax, eax
je 0x4158dc
test byte [ebx*4 + 0xdfde40], 0x10
jne 0x415ba0
mov eax, dword [str.Display_chat_messages]
test eax, eax
je 0x4158f3
test byte [ebx*4 + 0xdfde40], 0x20
jne 0x415c90
mov eax, dword [str.Display_mini_map]
test eax, eax
je 0x41590a
test byte [ebx*4 + 0xdfde40], 0x40
jne 0x415ce0
mov eax, dword [str.Display_lag_o_meter]
test eax, eax
je 0x415921
test byte [ebx*4 + 0xdfde40], 0x80
jne 0x4159e8
mov eax, dword [str.Display_player_list]
test eax, eax
je 0x415938
test byte [ebx*4 + 0xdfde41], 1
jne 0x415a38
mov eax, dword [str.Display_character_boni]
test eax, eax
je 0x41594f
test byte [ebx*4 + 0xdfde41], 2
jne 0x415a88
mov eax, dword [str.Display_subinventory]
test eax, eax
je 0x415966
test byte [ebx*4 + 0xdfde41], 4
jne 0x415ad8
add ebx, 1
add edi, 0x28
cmp ebx, 0xa
je 0x415b2b
mov eax, dword [ebx*4 + 0xdfde80]
test eax, eax
je 0x415966
mov eax, dword [str.Display_inven_equip]
test eax, eax
je 0x415880
test byte [ebx*4 + 0xdfde40], 1
je 0x415880
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x415880
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 7
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x415921
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 8
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x415938
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 9
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x41594f
mov dword [esp + 8], edi
add edi, 0x28
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0xc], 0xa
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
cmp ebx, 0xa
jne 0x415975
mov dword [esp + 4], str._n_n_n_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp], esi
call fcn.00445e70
xor eax, eax
add esp, 0x810
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 3
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x4158c5
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 4
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x4158dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x415897
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 2
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x4158ae
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 5
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x4158f3
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._Window__s__Flag__s_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 0xc], 6
mov dword [esp + 8], ebx
mov dword [esp + 4], str.W:_d:_d_n
mov dword [esp], esi
call fcn.0040af90
mov dword [esp + 4], 0x50561e
mov dword [esp], esi
call fcn.0040af90
jmp 0x41590a
mov eax, 0xffffffff
jmp 0x415b45