Function at 0x5f9d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x74ceb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ebx
call fcn.00412d40
mov eax, dword [ebx + 0x1fc]
xor edi, edi
lea ebp, [ebx + 0x1fc]
mov ecx, ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 1
call dword [eax + 0xc]
test eax, eax
jne 0x5f9e44
mov eax, dword [0x914298]
mov ecx, dword [eax + 0x8bdb4]
mov edx, dword [ebp]
push ecx
mov ecx, ebp
call dword [edx + 4]
mov eax, dword [0x914298]
mov ecx, dword [eax + 0x8bdb4]
mov edx, dword [ebp]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
mov eax, dword [0x914298]
mov ecx, dword [eax + 0x8bdb4]
mov edx, dword [ebx + 0x210]
lea esi, [ebx + 0x210]
push ecx
mov ecx, esi
call dword [edx + 4]
mov eax, dword [0x914298]
mov ecx, dword [eax + 0x8bdb4]
mov edx, dword [esi]
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov dword [esp + 0x28], edi
jmp 0x5f9e55
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.005f3860
mov ecx, dword [0x914298]
mov ecx, dword [ecx + 0x8bdb4]
mov edi, dword [ebx + 0x200]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x914298]
mov ecx, dword [eax + 0x8bdb4]
mov edi, dword [ebx + 0x214]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
lea esi, [ebx + 0x24]
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x1c], esi
call dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x24], eax
je 0x5f9fb8
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov cx, word [eax]
push 0
push ecx
call fcn.00659110
mov ecx, eax
add esp, 8
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x5f9fad
mov eax, dword [0x914298]
mov esi, dword [eax + 0x8bdb8]
mov edi, dword [eax + 0x8bdbc]
add edi, esi
cmp esi, edi
jae 0x5f9f24
lea ebx, [ecx + 0x1ac]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x14]
cmp dword [eax], 0
je 0x5f9f10
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x14]
add byte [eax], 1
add esi, 1
cmp esi, edi
jb 0x5f9ef7
mov eax, dword [0x914298]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov esi, dword [eax + 0x8bdc0]
mov edi, dword [eax + 0x8bdc4]
add edi, esi
cmp esi, edi
jae 0x5f9f6d
lea ebx, [ecx + 0x1ac]
lea esp, [esp]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x14]
cmp dword [eax], 0
je 0x5f9f59
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x14]
add byte [eax], 1
add esi, 1
cmp esi, edi
jb 0x5f9f40
mov eax, dword [0x914298]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov esi, dword [eax + 0x8bdd0]
mov edi, dword [eax + 0x8bdd4]
add edi, esi
cmp esi, edi
jae 0x5f9fa9
lea ebx, [ecx + 0x1ac]
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x14]
cmp dword [eax], 0
je 0x5f9f9e
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x14]
add byte [eax], 1
add esi, 1
cmp esi, edi
jb 0x5f9f85
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
jne 0x5f9eb2
lea esi, [ebx + 0x1d0]
mov edi, 9
mov ecx, dword [esi]
call fcn.0062b9f0
test eax, eax
je 0x5fa01c
mov eax, dword [esi]
cmp dword [eax + 0x88], 1
jne 0x5fa01c
mov eax, dword [eax + 0x90]
mov ecx, dword [0x914298]
cmp eax, dword [ecx + 0x8bdb4]
jae 0x5fa01c
mov edx, eax
shl edx, 6
sub edx, eax
add edx, edx
sub edx, eax
cmp dword [ecx + edx*4 + 0xedb4], 2
lea ecx, [ecx + edx*4 + 0xedb4]
jne 0x5fa01c
mov edx, dword [ebx + 0x210]
lea ecx, [ebx + 0x210]
push eax
call dword [edx + 0x14]
add byte [eax], 1
add esi, 4
sub edi, 1
jne 0x5f9fc3
mov eax, dword [0x914298]
mov esi, dword [eax + 0x8bdc8]
mov edi, dword [eax + 0x8bdcc]
add edi, esi
cmp esi, edi
mov dword [esp + 0x20], 1
jae 0x5fa06c
push esi
mov ecx, ebx
call fcn.005f3a40
test eax, eax
je 0x5fa05d
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x14]
add byte [eax], 1
jmp 0x5fa065
mov dword [esp + 0x20], 0
add esi, 1
cmp esi, edi
jb 0x5fa043
mov ecx, dword [0x912e94]
cmp dword [ecx + 0x2c], 7
jne 0x5fa3b0
cmp dword [esp + 0x20], 0
je 0x5fa0e9
cmp dword [ebx + 0x2d4], 0
jne 0x5fa0e9
mov dx, word [ecx + 0x1ac]
cmp dx, word [ebx + 0x20]
jne 0x5fa0e9
call fcn.006cc7d0
mov esi, 1
push 6
mov dword [eax + 0x14], esi
mov ecx, dword [0x9a3304]
push eax
call fcn.006c5910
test eax, eax
mov dword [ebx + 0x2d4], esi
je 0x5fa0e3
mov ecx, dword [0x905af8]
test ecx, ecx
je 0x5fa0cd
lea eax, [ecx + 8]
jmp 0x5fa0cf
xor eax, eax
mov edx, dword [ecx]
push 0
push 0
push 0
push 0x755f8f65
push eax
call dword [edx + 0xf0]
mov ecx, dword [0x912e94]
cmp dword [esp + 0x28], 0
je 0x5fa3b0
mov eax, dword [ecx + 0x2c]
cmp eax, 7
je 0x5fa105
cmp eax, 1
jne 0x5fa3b0
cmp dword [ecx + 0x1a0], 0
jne 0x5fa3b0
cmp dword [ecx + 0x19c], 0
jne 0x5fa3b0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.005f3860
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x14]
je 0x5fa3b0
mov dx, word [ebx + 0x20]
mov eax, dword [0x912e94]
cmp dx, word [eax + 0x1ac]
jne 0x5fa3b0
push 0x8000
call fcn.0040fa60
mov ebp, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp edi, eax
lea esi, [ebp + 0x4000]
lea ebx, [ebp + 0x6000]
mov word [ebp], 0
jbe 0x5fa234
push 2
push 0
xor edi, eax
push esi
push edi
call fcn.005f3700
mov ecx, dword [0x894420]
add esp, 0x10
push esi
push 0
push 0
push str.msg_valuables_win
call fcn.00414e70
push eax
push ebp
call fcn.0071f52c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp eax, ecx
je 0x5fa20b
push 4
push 1
xor eax, ecx
push esi
push eax
call fcn.005f3700
mov ecx, dword [0x894420]
add esp, 0x10
push esi
push 0
push 0
push str.msg_advantages_win
call fcn.00414e70
push eax
push ebx
call fcn.0071f52c
push ebx
push ebp
call fcn.0071e62e
mov ecx, dword [0x9a49f4]
add esp, 0x14
push 0
push 0
push 0xca
push str.voice_messages_gained_advantage_
call fcn.006dc180
mov ecx, dword [0x894420]
push 0
push 0
push str.msg_valuables_win_caption
call fcn.00414e70
push str.images_screens_playWnd_messages_Illustrations_val_win.bmp
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00413310
jmp 0x5fa2ee
jae 0x5fa2ea
push 1
push 0
xor edi, eax
push esi
push edi
call fcn.005f3700
mov ecx, dword [0x894420]
add esp, 0x10
push esi
push 0
push 0
push str.msg_valuables_lost
call fcn.00414e70
push eax
push ebp
call fcn.0071f52c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp eax, ecx
je 0x5fa2c4
push 3
push 1
xor eax, ecx
push esi
push eax
call fcn.005f3700
mov ecx, dword [0x894420]
add esp, 0x10
push esi
push 0
push 0
push str.msg_advantages_lost
call fcn.00414e70
push eax
push ebx
call fcn.0071f52c
push ebx
push ebp
call fcn.0071e62e
mov ecx, dword [0x9a49f4]
add esp, 0x14
push 0
push 0
push 0xca
push str.voice_messages_lost_advantage_
call fcn.006dc180
mov ecx, dword [0x894420]
push 0
push 0
push str.msg_valuables_lost_caption
call fcn.00414e70
push str.images_screens_playWnd_messages_Illustrations_val_lost.bmp
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00413310
jmp 0x5fa2ee
mov edi, dword [esp + 0x2c]
push 0x10
call fcn.0040fa60
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
mov byte [esp + 0x40], 1
je 0x5fa311
lea ecx, [esi + 8]
call fcn.00412d40
jmp 0x5fa313
xor esi, esi
test esi, esi
mov byte [esp + 0x40], 0
je 0x5fa343
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 8]
mov dword [esi], ebp
mov dword [esi + 4], edi
call fcn.004133c0
mov ecx, dword [0x905af8]
test ecx, ecx
je 0x5fa343
push esi
push 0x5f9d10
call fcn.004b1360
mov esi, dword [esp + 0x10]
push esi
call fcn.00463c60
push esi
push 0
call fcn.004b2040
call fcn.0047a530
push esi
call fcn.0051c330
push esi
call fcn.00465480
push 0
push esi
call fcn.004d3740
mov esi, dword [esp + 0x38]
mov edx, dword [esi]
add esp, 0x1c
mov ecx, esi
call dword [edx + 0x2c]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5fa3b0
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov dx, word [eax]
push 0
push edx
call fcn.00659110
add esp, 8
test eax, eax
je 0x5fa3a9
mov ecx, eax
call fcn.0065b1b0
cmp dword [esp + 0x2c], 0
jne 0x5fa384
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0xffffffff
call fcn.00412de0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret