Function at 0x4b5c30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x559ba1
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x592c80]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov ecx, dword [0x5a943c]
lea edx, [ebp - 0x20]
push 0
push 0
push edx
mov eax, dword [ecx]
push 5
mov byte [ebp - 0x20], 0x40
call dword [eax + 4]
cmp dword [0x5a9418], 0
je 0x4b5cbc
push 0x576ca8
push str.autolog.dat
call fcn.0052537a
mov esi, eax
add esp, 8
test esi, esi
je 0x4b5cbc
push str.OptionMode::Activate__n
push esi
call fcn.00446630
push esi
call fcn.00525539
add esp, 0xc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
lea eax, [ebx + 0x110]
push eax
mov eax, dword [0x5a942c]
push 0
push 0
push 0xffff00ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.datmouseart.png
push dword [eax + 0x2a3d8]
call fcn.00404443
push dword [0x593f94]
lea eax, [ebx + 0x114]
push eax
push str.datUIPopUp.png
call fcn.0045c7d0
push dword [0x593f94]
lea eax, [ebx + 0x118]
push eax
push str.datUIPopUpLong.png
call fcn.0045c7d0
mov ecx, dword [0x5a942c]
push 0x170
mov eax, dword [ecx + 0x2a398]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ecx + 0x2a39c]
cdq
sub eax, edx
sar edi, 1
mov esi, eax
sar esi, 1
call fcn.004c8b9c
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov dword [ebp - 4], 0
mov ecx, dword [0x5a942c]
push str.WINDOW
push dword [ecx + 0x2a39c]
push dword [ecx + 0x2a398]
mov ecx, eax
push 0
push 0
push 0xffffffffffffffff
call fcn.0046e870
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x11c], eax
push 0x17c
mov byte [eax + 0x168], 0
mov eax, dword [ebx + 0x11c]
mov byte [eax + 0x139], 1
call fcn.004c8b9c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
push 0
push str.BIGINFO_WINDOW
lea ecx, [esi + 0xd2]
mov dword [ebp - 4], 1
push ecx
lea ecx, [edi + 0x136]
push ecx
lea eax, [esi - 0xd2]
mov ecx, ebx
push eax
lea eax, [edi - 0x136]
push eax
push 0xfffffffffffffffe
call fcn.0046e870
lea eax, [ebx + 0x170]
mov dword [ebx], vtable.BigInfoWindow.0
push eax
mov eax, dword [0x5a942c]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.dat_biginfoCorner.png
push dword [eax + 0x2a3d8]
call fcn.00404443
lea eax, [ebx + 0x174]
push eax
mov eax, dword [0x5a942c]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.dat_biginfoTop.png
push dword [eax + 0x2a3d8]
call fcn.00404443
lea eax, [ebx + 0x178]
push eax
mov eax, dword [0x5a942c]
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 0
push 0
push 0
push str.dat_biginfoSide.png
push dword [eax + 0x2a3d8]
call fcn.00404443
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
push ebx
mov ecx, dword [edi + 0x11c]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebx + 0x110]
sub eax, dword [ebx + 0x108]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x114]
sub eax, dword [ebx + 0x10c]
cdq
sub eax, edx
sar eax, 1
push 0x17c
mov dword [ebp - 0x14], eax
call fcn.004c8b9c
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x108]
sub ecx, 0x14
push 0
push str.TEXTBOX
push 0x2d
push ecx
push 0xa
push 0xa
push 0x14
mov ecx, esi
call fcn.0046e870
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp]
push dword [0x5aa3d4]
mov dword [esi], vtable.UIRectTextBox.0
push dword [0x5aa3e0]
mov dword [esi + 0x174], 0
push dword [0x5aa3d8]
mov dword [esi + 0x178], 0
push str.Level__ld______Health__ld__ld
mov dword [esi + 0x170], 0xffffffff
push eax
mov dword [esi + 0x150], 0x4b53e0
call fcn.0044eac0
lea edx, [ebp]
add esp, 0x14
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4b5f60
movsx eax, byte [0x593dec]
sub edx, ecx
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, 0x400
add ecx, str.Young
sub eax, edx
push ecx
push 0x58077c
push eax
lea eax, [ebp]
add eax, edx
push eax
call fcn.0043caa0
movaps xmm0, xmmword [0x581600]
add esp, 0x10
movsx ecx, byte [0x593dec]
mov dword [ebp - 0x2c], 0x9ff6
mov dword [ebp - 0x28], 0x13ff6
mov dword [ebp - 0x24], 0x27ff6
movups xmmword [ebp - 0x5c], xmm0
movaps xmm0, xmmword [0x581640]
movups xmmword [ebp - 0x4c], xmm0
movaps xmm0, xmmword [0x581650]
movups xmmword [ebp - 0x3c], xmm0
cmp ecx, 0xf
jge 0x4b6014
mov eax, dword [0x5aa3d8]
cmp eax, dword [ebp + ecx*4 - 0x5c]
jl 0x4b6014
lea eax, [ebp]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b5ff0
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push str.READY
push ecx
lea ecx, [ebp]
add eax, ecx
push eax
call fcn.0043caa0
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov dword [esi + 0x16c], 9
mov ecx, ebx
mov byte [esi + 0x168], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x178], 2
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
push 0x194
call fcn.004c8b9c
mov edx, eax
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x14]
push str.TEXTBUTTON
lea ecx, [eax - 0x7c]
add eax, 0xffffff6a
push ecx
lea ecx, [esi + 2]
push ecx
push eax
lea eax, [esi - 0xc8]
mov ecx, edx
push eax
push 0
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Return_to_Game
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov ecx, dword [0x593e8c]
mov eax, ecx
mov edx, dword [0x593e84]
sub eax, edx
push 0x194
lea ecx, [ecx + eax*2]
add eax, eax
add edx, eax
mov dword [0x593e8c], ecx
mov dword [0x593e84], edx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 1
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.View_Instructions
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 3
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.View_Credits
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 5
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Grass
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 7
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 6
mov ecx, eax
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Terrain_Detail
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x16
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.UI_Opacity
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov ecx, dword [0x593e8c]
mov eax, ecx
mov edx, dword [0x593e84]
sub eax, edx
push 0x194
lea ecx, [ecx + eax*2]
add eax, eax
add edx, eax
mov dword [0x593e8c], ecx
mov dword [0x593e84], edx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 7
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.WASD_moving_enabled
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov ecx, dword [0x593e8c]
mov eax, ecx
mov edx, dword [0x593e84]
sub eax, edx
push 0x194
lea eax, [eax + eax*2]
add ecx, eax
add edx, eax
mov dword [0x593e8c], ecx
mov dword [0x593e84], edx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 4
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Quit_Game
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
push 0x194
call fcn.004c8b9c
mov edx, eax
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
push str.TEXTBUTTON
lea ecx, [eax - 0x86]
add eax, 0xffffff60
push ecx
lea ecx, [esi + 0xcb]
push ecx
push eax
lea eax, [esi + 0x32]
mov ecx, edx
push eax
push 8
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Show_hits
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 9
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Show_Misses
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xa
mov ecx, eax
mov dword [ebp - 4], 0xd
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Show_loots
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
mov dword [ebp - 4], 0xe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xb
mov ecx, eax
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Show_fog
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xc
mov ecx, eax
mov dword [ebp - 4], 0xf
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Show_mist
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xd
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Click_to_move_ON
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xe
mov ecx, eax
mov dword [ebp - 4], 0x11
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.3D_sound
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xf
mov ecx, eax
mov dword [ebp - 4], 0x12
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.UI_sound
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
push 0x194
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x10
mov ecx, eax
mov dword [ebp - 4], 0x13
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Language_Filter
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov eax, dword [0x593e8c]
mov edx, eax
mov ecx, dword [0x593e84]
sub edx, ecx
add eax, edx
add ecx, edx
push 0x194
mov dword [0x593e8c], eax
mov dword [0x593e84], ecx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x13
mov ecx, eax
mov dword [ebp - 4], 0x14
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Weapon_effects_shown
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov ecx, dword [0x593e8c]
mov eax, ecx
mov edx, dword [0x593e84]
sub eax, edx
push 0x194
lea ecx, [ecx + eax*2]
add eax, eax
add edx, eax
mov dword [0x593e8c], ecx
mov dword [0x593e84], edx
call fcn.004c8b9c
mov dword [ebp - 0x10], eax
push str.TEXTBUTTON
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0x17
mov ecx, eax
mov dword [ebp - 4], 0x15
call fcn.0046e1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push str.Reset_Flags
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x30]
mov dword [esi + 0x150], 0x4b53e0
mov ecx, ebx
mov dword [esi + 0x16c], 9
mov byte [esi + 0x168], 1
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
mov ecx, edi
call fcn.004b7280
mov ecx, dword [edi + 0x11c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov dword [0x5aa418], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004c8873
lea esp, [ebp + 0x404]
pop ebp
ret