Function at 0x539800
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x3ac
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esp + 0x14], edi
dec eax
je 0x539952
dec eax
je 0x539889
dec eax
jne 0x5399ba
push edi
mov edx, 0x5396e0
mov ecx, 0x2b5
call fcn.005f7180
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x528
push edi
call ebp
push 0x694
push edi
mov dword [esp + 0x1c], eax
call ebp
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push eax
push 0
push 0x4b2
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0xa255a8
call fcn.00668ff0
test al, al
jne 0x5399ba
push 0x40c
push edi
call ebp
jmp 0x5399b1
call fcn.00482a20
cmp eax, dword [esi + 0x10]
jae 0x5398e5
push 0
push 0
push 0
push 0x1ad
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_OK
mov dword [esp + 0x24], 0x7c1614
call fcn.006eea10
push eax
push 0x1ad
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_DISKFULL
call fcn.006eea10
push eax
lea ecx, [esp + 0x24]
call fcn.005b1140
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x3ac
ret
push 0
mov edx, 0x5395c0
mov ecx, 0x2b4
call fcn.005f7180
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x527
push edi
call ebx
mov ebp, dword [esi + 0xc]
push 0x526
push edi
mov dword [esp + 0x1c], eax
call ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x4b2
push eax
call ebp
push 0x694
push edi
call ebx
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0x18]
push eax
push 0
push 0x4b2
push ebx
call ebp
mov ecx, 0xa255a8
call fcn.00668ff0
test al, al
jne 0x5399ba
jmp 0x5399a5
push 0
mov edx, 0x539460
mov ecx, 0xb7
call fcn.005f7180
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push 0x525
push edi
call ebx
push 0x694
push edi
mov dword [esp + 0x1c], eax
call ebx
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
push eax
push 0
push 0x4b2
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0xa255a8
call fcn.00668ff0
test al, al
jne 0x5399ba
push 0x40c
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
mov dword [esi + 0x18], 0xffffffff
je 0x539ffe
push esi
push 8
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x539a1a
push ebx
mov ecx, esi
call fcn.0053a0d0
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x18b
push ebx
call ebp
test eax, eax
setg cl
and ecx, 0xff
push ecx
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, edi
call fcn.005f7330
jmp 0x539a33
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, edi
call fcn.005f7330
jmp 0x539a33
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 0x18], 0xffffffff
jne 0x539a68
call fcn.005f7c20
cmp al, 1
jne 0x539a49
mov dword [esi + 0x18], 2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x539a52
call eax
mov al, byte [0xa28588]
test al, al
jne 0x539a62
xor cl, cl
call fcn.00516790
cmp dword [esi + 0x18], 0xffffffff
je 0x539a39
mov eax, dword [esi + 0x18]
cmp eax, 1
je 0x539a7b
cmp eax, 0x40f
jne 0x539fc4
push 0
push 0
push 0x188
push ebx
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x539fbd
push 0
push eax
push 0x199
push ebx
call ebp
mov ebp, eax
mov eax, dword [esi + 4]
dec eax
je 0x539ed2
dec eax
je 0x539bca
dec eax
jne 0x539fc4
push ebp
push 0x26d
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_DELETE_FILE_QUERY
call fcn.006eea10
push eax
lea edx, [esp + 0xc4]
push str._s_n_n_s
push edx
call fcn.0076ecf4
add esp, 0x10
push 0x528
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
test eax, eax
je 0x539b15
push ebx
push ebx
push 0x4ef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
test ebx, ebx
je 0x539b15
mov dl, 1
mov ecx, ebx
call fcn.005dc990
push 0
push 0
push 0x278
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_NO
mov dword [esp + 0x34], 0x7c1614
call fcn.006eea10
push eax
push 0x278
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_YES
call fcn.006eea10
push eax
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.005b1140
test eax, eax
jne 0x539bad
mov edx, dword [esi]
add ebp, 0x100
push ebp
mov ecx, esi
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0
push eax
push 0x182
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x186
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x18b
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x539bb4
mov dword [esi + 0x18], 0xffffffff
test ebx, ebx
je 0x539fc4
xor dl, dl
mov ecx, ebx
call fcn.005dc990
jmp 0x539fc4
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x527
push edi
call ebx
test eax, eax
mov dword [esp + 0x10], 0
je 0x539c05
push 0
push 0
push 0x4ef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x539c05
mov dl, 1
mov ecx, eax
call fcn.005dc990
push 0x526
push edi
call ebx
lea ecx, [esp + 0xbc]
push ecx
push 0x50
push 0x4b3
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xbc]
call fcn.006e40f0
lea edx, [esp + 0xbc]
push edx
call fcn.0076eb95
add esp, 4
test eax, eax
jne 0x539cb1
push eax
push eax
push eax
push 0x230
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_OK
mov dword [esp + 0x40], 0x7c1614
call fcn.006eea10
push eax
push 0x230
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_MUSTENTER_DESCRIPTION
call fcn.006eea10
push eax
lea ecx, [esp + 0x40]
call fcn.005b1140
push 0x526
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push 0x526
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x539fbd
test ebp, ebp
je 0x539cc7
mov al, byte [ebp + 0x1b4]
test al, al
je 0x539cc7
add ebp, 0x100
jmp 0x539d46
lea ecx, [esp + 0x38]
call fcn.00468bf0
mov eax, dword [esi + 8]
push eax
call fcn.0076fc3a
push eax
lea ecx, [esp + 0x2c4]
push str.SAVE_04lX._3s
push ecx
call fcn.0076d684
add esp, 0x10
lea edx, [esp + 0x2bc]
lea ecx, [esp + 0x38]
push edx
call fcn.0046fd50
push 0
lea ecx, [esp + 0x3c]
call fcn.00468dc0
cmp al, 1
je 0x539cd0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x38], vtable.CCFileClass.0
mov dword [esp + 0x98], 0
call fcn.00438290
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], vtable.CDFileClass.0
call fcn.0042f250
lea ebp, [esp + 0x2bc]
test ebp, ebp
je 0x539eba
push ebp
lea ecx, [esp + 0xa0]
call fcn.0062ff90
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x14]
cmp al, 1
lea ecx, [esp + 0x9c]
sete bl
call fcn.0062ff10
test bl, bl
je 0x539de3
push 0
push 0
push 0x244
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_NO
mov dword [esp + 0x38], 0x7c1614
call fcn.006eea10
push eax
push 0x244
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_YES
call fcn.006eea10
push eax
push 0x244
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_CONFIRM_SAVE
call fcn.006eea10
push eax
lea ecx, [esp + 0x3c]
call fcn.005b1140
test eax, eax
je 0x539de3
mov dword [esi + 0x18], 0xffffffff
jmp 0x539eba
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call ebx
mov eax, dword [esi]
lea ecx, [esp + 0xbc]
push ecx
push ebp
mov ecx, esi
call dword [eax + 8]
test al, al
push 5
push edi
jne 0x539e55
call ebx
push 0
push 0
push 0
push 0x253
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_OK
mov dword [esp + 0x34], 0x7c1614
call fcn.006eea10
push eax
push 0x253
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_ERROR_SAVING_GAME
call fcn.006eea10
push eax
lea ecx, [esp + 0x34]
call fcn.005b1140
mov dword [esi + 0x18], 0xffffffff
jmp 0x539eba
call ebx
mov ecx, edi
call fcn.005de660
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
push 0
push 0
push 0
push 0x25b
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_OK
mov ebp, eax
mov dword [esp + 0x2c], 0x7c1614
call fcn.006eea10
push eax
push ebp
lea ecx, [esp + 0x2c]
call fcn.005b1140
mov ecx, edi
call fcn.005de5f0
push 0
push edi
call ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x539eba
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0076ec19
add esp, 8
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x539fc4
xor dl, dl
call fcn.005dc990
jmp 0x539fc4
mov al, byte [ebp + 0x1b5]
test al, al
jne 0x539fc4
mov ecx, 0x3c
call fcn.0046e0c0
mov ebx, eax
mov eax, dword [ebp + 0x1a8]
cmp eax, 0xffffffff
jne 0x539efb
or ecx, eax
jmp 0x539f0a
mov ecx, dword [0xa1e074]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x98]
call fcn.0046e0d0
mov eax, dword [0x7bd078]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x34], vtable.CD.0
call dword [vtable.CD.0]
test al, al
jne 0x539f37
mov ecx, ebx
call fcn.0046e0d0
jmp 0x539fbd
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x821f88]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [esi]
add ebp, 0x100
push ebp
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x539fc4
mov ecx, dword [0x821f88]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call ebx
push 0
push 0
push 0
push 0x218
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_OK
mov dword [esp + 0x30], 0x7c1614
call fcn.006eea10
push eax
push 0x218
push str.C:RA2LoadDlg.CPP
xor edx, edx
mov ecx, str.TXT_ERROR_LOADING_GAME
call fcn.006eea10
push eax
lea ecx, [esp + 0x30]
call fcn.005b1140
push 0
push edi
call ebx
mov dword [esi + 0x18], 0xffffffff
cmp dword [esi + 0x18], 0xffffffff
je 0x539a29
mov eax, dword [esi + 0x30]
xor ebx, ebx
test eax, eax
jle 0x539fee
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebx*4]
push ecx
call fcn.0076d2d5
mov eax, dword [esi + 0x30]
add esp, 4
inc ebx
cmp ebx, eax
jl 0x539fd7
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x20]
call dword [edx + 0xc]
mov ecx, edi
call fcn.005f7250
mov eax, dword [esi + 0x18]
pop edi
cmp eax, 0x40f
pop esi
pop ebp
pop ebx
sete al
add esp, 0x3ac
ret