Function at 0x40af00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49400a
mov eax, dword fs:[0]
push eax
mov eax, 0x1214
call fcn.0047d2a0
mov eax, dword [0x4d13f4]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1220], ecx
mov dword [ebp - 0x5e0], 0x32
push 0xff
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0047ba50
add esp, 0xc
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0x49db51
push str.KlineAera
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x124]
push edx
call fcn.0047b090
add esp, 4
test eax, eax
jbe 0x40afbe
lea eax, [ebp - 0x124]
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x5e0], eax
mov dword [ebp - 0x13c], 6
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0x49db52
push 0x49e088
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x124]
push edx
call fcn.0047b090
add esp, 4
test eax, eax
ja 0x40b034
push 0
push 0
push 0x49e094
mov ecx, dword [ebp - 0x1220]
call fcn.0044ea0c
jmp 0x40c0c8
lea eax, [ebp - 0x124]
push eax
call fcn.0047baca
add esp, 4
mov dword [ebp - 0x5b0], eax
mov dword [ebp - 0x9ec], 4
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0x49db53
push 0x49e0b0
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x124]
push edx
call fcn.0047b090
add esp, 4
test eax, eax
ja 0x40b0bf
push 0
push 0
push 0x49e0bc
mov ecx, dword [ebp - 0x1220]
call fcn.0044ea0c
jmp 0x40c0c8
lea eax, [ebp - 0x124]
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0x49db59
push 0x49e0d8
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x124]
push edx
call fcn.0047b090
add esp, 4
test eax, eax
ja 0x40b140
push 0
push 0
push 0x49e0e4
mov ecx, dword [ebp - 0x1220]
call fcn.0044ea0c
jmp 0x40c0c8
lea eax, [ebp - 0x124]
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x5ac], eax
mov dword [ebp - 0x150], 2
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0x49db5a
push str.FontYPos
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x124]
push edx
call fcn.0047b090
add esp, 4
test eax, eax
jbe 0x40b1c7
lea eax, [ebp - 0x124]
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x140], 1
mov dword [ebp - 0x138], 0
jmp 0x40b1ec
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
cmp edx, dword [ebp - 0x9ec]
jge 0x40b20b
mov eax, dword [ebp - 0x140]
imul eax, eax, 0xa
mov dword [ebp - 0x140], eax
jmp 0x40b1dd
lea ecx, [ebp - 0x5dc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x5d8]
sub edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x1220]
mov dword [eax + 0x302a1c], edx
mov ecx, dword [ebp - 0x5dc]
sub ecx, dword [ebp - 0x198]
mov edx, dword [ebp - 0x1220]
mov dword [edx + 0x302a20], ecx
push 0
push str.com.ib.chart.fb
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.0040dcb0
test eax, eax
jl 0x40b2c1
mov eax, dword [ebp - 0x5d8]
add eax, 0x6e
mov dword [ebp - 0x5d8], eax
mov ecx, dword [ebp - 0x1220]
mov dword [ecx + 0x302a1c], 0
mov edx, dword [ebp - 0x1220]
mov dword [edx + 0x302a1c], 0
mov dword [ebp - 0x5e0], 0x64
mov eax, dword [ebp - 0x18c]
sub eax, 0x6e
mov dword [ebp - 0x18c], eax
lea ecx, [ebp - 0x198]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x1220]
mov edx, dword [ebp - 0x190]
mov dword [ecx + 0x2fd640], edx
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp - 0x18c]
mov dword [eax + 0x2fd644], ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x9e8], eax
mov dword [ebp - 0x188], 0
xor eax, eax
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x188], 0x28
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x180], edx
mov word [ebp - 0x17a], 0x20
mov word [ebp - 0x17c], 1
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x20], 0
push 0
push 0
mov eax, dword [ebp - 0x1220]
add eax, 0x2fd648
push eax
push 0
lea ecx, [ebp - 0x188]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x9e8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov ecx, dword [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x190]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x9e8]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x40b44a
push 0
push str.Error
push 0x49e124
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40c0c8
mov ecx, dword [ebp - 0x1220]
add ecx, 0x98
call fcn.0040cb20
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x5cc]
call fcn.004112b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004112b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x154], 0
jge 0x40b497
mov eax, dword [ebp - 0x190]
add eax, dword [ebp - 0x154]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x148], 0
cmp dword [ebp - 0x5ac], 0
jle 0x40b4b8
mov ecx, dword [ebp - 0x5ac]
mov dword [ebp - 0x148], ecx
jmp 0x40b4c4
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x154]
cmp eax, dword [ebp - 0x148]
jle 0x40b4e4
mov ecx, dword [ebp - 0x154]
add ecx, dword [ebp - 0x148]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x148]
cmp edx, dword [ebp - 0x190]
jle 0x40b4fe
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x18c]
imul eax, dword [ebp - 0x5e0]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x5a4], eax
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x5c4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x128]
call fcn.004112b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c8]
call fcn.004112b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5a0]
call fcn.004112b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5b8]
call fcn.004112b0
mov byte [ebp - 4], 5
mov dword [ebp - 0x5b4], 0
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x14c], edx
push 0
push 0x49e138
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.0040dcb0
test eax, eax
jge 0x40b5c9
push 0
push 0x49e148
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.0040dcb0
test eax, eax
jl 0x40b958
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x9f8], eax
push 8
mov eax, dword [ebp - 0x9f8]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x9f0], eax
push 0xa
mov ecx, dword [ebp - 0x9f8]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x9f4], eax
cmp dword [ebp - 0x9f0], 0x500
jne 0x40b64b
cmp dword [ebp - 0x9f4], 0x320
jne 0x40b64b
mov dword [ebp - 0x154], 0x1e
mov dword [ebp - 0x14c], 0x64
mov dword [ebp - 0x148], 0x67
mov dword [ebp - 0x5a4], 0x258
jmp 0x40b6ec
cmp dword [ebp - 0x9f0], 0x500
jne 0x40b68d
cmp dword [ebp - 0x9f4], 0x400
jne 0x40b68d
mov dword [ebp - 0x154], 0x28
mov dword [ebp - 0x14c], 0x5a
mov dword [ebp - 0x148], 0x69
mov dword [ebp - 0x5a4], 0x258
jmp 0x40b6ec
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5b8]
call fcn.00403d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5a0]
call fcn.00403d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c8]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x128]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5cc]
call fcn.00403d20
jmp 0x40c0c8
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x148]
mov dword [edx + 0x8c], eax
mov ecx, dword [ebp - 0x1220]
mov edx, dword [ebp - 0x5a4]
mov dword [ecx + 0x90], edx
push 0
push str.com.ib.chart
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.0040dcb0
test eax, eax
jge 0x40b74c
push 0
push str.SunAwtFrame
mov ecx, dword [ebp - 0x1220]
add ecx, 0x2fd4b8
call fcn.0040dcb0
test eax, eax
jl 0x40b958
mov dword [ebp - 0xe0c], 0
mov dword [ebp - 0xe04], 0
mov dword [ebp - 0xe10], 0
mov dword [ebp - 0xe00], 0
mov dword [ebp - 0xe08], 0
mov dword [ebp - 0xe14], 0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x138], eax
jmp 0x40b7a5
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
cmp edx, dword [ebp - 0x148]
jge 0x40b8d3
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x134], eax
jmp 0x40b7d4
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
cmp edx, dword [ebp - 0x5a4]
jge 0x40b8ce
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x1220]
call fcn.0040ae50
mov dword [ebp - 0x144], eax
mov dword [ebp - 0xe04], 0
mov dword [ebp - 0xe10], 0
jmp 0x40b82a
mov edx, dword [ebp - 0xe10]
add edx, 1
mov dword [ebp - 0xe10], edx
mov eax, dword [ebp - 0xe10]
cmp eax, dword [ebp - 0xe0c]
jge 0x40b867
mov ecx, dword [ebp - 0xe10]
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp + ecx*4 - 0xdfc]
jne 0x40b865
mov dword [ebp - 0xe04], 1
mov eax, dword [ebp - 0xe10]
mov dword [ebp - 0xe14], eax
jmp 0x40b867
jmp 0x40b81b
cmp dword [ebp - 0xe04], 1
jne 0x40b88d
mov ecx, dword [ebp - 0xe14]
mov edx, dword [ebp + ecx*4 - 0x1214]
add edx, 1
mov eax, dword [ebp - 0xe14]
mov dword [ebp + eax*4 - 0x1214], edx
cmp dword [ebp - 0xe04], 0
jne 0x40b8c9
mov ecx, dword [ebp - 0xe0c]
add ecx, 1
mov dword [ebp - 0xe0c], ecx
mov edx, dword [ebp - 0xe0c]
mov dword [ebp + edx*4 - 0x1218], 1
mov eax, dword [ebp - 0xe0c]
mov ecx, dword [ebp - 0x144]
mov dword [ebp + eax*4 - 0xe00], ecx
jmp 0x40b7c5
jmp 0x40b796
mov dword [ebp - 0xe00], 0xffffffff
mov dword [ebp - 0xe10], 0
jmp 0x40b8f8
mov edx, dword [ebp - 0xe10]
add edx, 1
mov dword [ebp - 0xe10], edx
mov eax, dword [ebp - 0xe10]
cmp eax, dword [ebp - 0xe0c]
jge 0x40b93c
mov ecx, dword [ebp - 0xe10]
mov edx, dword [ebp + ecx*4 - 0x1214]
cmp edx, dword [ebp - 0xe08]
jle 0x40b93a
mov eax, dword [ebp - 0xe10]
mov ecx, dword [ebp + eax*4 - 0x1214]
mov dword [ebp - 0xe08], ecx
mov edx, dword [ebp - 0xe10]
mov dword [ebp - 0xe00], edx
jmp 0x40b8e9
cmp dword [ebp - 0xe00], 0xffffffff
jle 0x40b958
mov eax, dword [ebp - 0xe00]
mov ecx, dword [ebp + eax*4 - 0xdfc]
mov dword [ebp - 0x5b0], ecx
mov edx, dword [ebp - 0x154]
mov dword [ebp - 0x138], edx
jmp 0x40b975
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
cmp ecx, dword [ebp - 0x148]
jge 0x40bb2e
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x134], edx
jmp 0x40b9a4
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
cmp ecx, dword [ebp - 0x5a4]
jge 0x40bb1e
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x1220]
call fcn.0040ae50
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [ebp - 0x5b0]
je 0x40bb0e
cmp dword [ebp - 0x144], 0xffffffff
je 0x40bb0e
mov dword [ebp - 0x5bc], 0
jmp 0x40ba0f
mov edx, dword [ebp - 0x5bc]
add edx, 1
mov dword [ebp - 0x5bc], edx
mov eax, dword [ebp - 0x5bc]
cmp eax, dword [ebp - 0x1c]
jge 0x40bb0e
mov ecx, dword [ebp - 0x5b0]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x5bc]
push edx
mov ecx, dword [ebp - 0x1220]
call fcn.0040ac40
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 1
jne 0x40bb09
mov dword [ebp - 0x5c0], 0
mov dword [ebp - 0x1218], 0
jmp 0x40ba84
mov eax, dword [ebp - 0x1218]
add eax, 1
mov dword [ebp - 0x1218], eax
mov ecx, dword [ebp - 0x1218]
cmp ecx, dword [ebp - 0x5b4]
jge 0x40babb
mov edx, dword [ebp - 0x1218]
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp + edx*4 - 0x59c]
cmp ecx, dword [eax + 0x302a18]
jne 0x40bab9
mov dword [ebp - 0x5c0], 1
jmp 0x40babb
jmp 0x40ba75
cmp dword [ebp - 0x5c0], 1
jne 0x40bac6
jmp 0x40bb0e
mov edx, dword [ebp - 0x5b4]
mov eax, dword [ebp - 0x1220]
mov ecx, dword [eax + 0x302a18]
mov dword [ebp + edx*4 - 0x59c], ecx
mov edx, dword [ebp - 0x5b4]
mov eax, dword [ebp - 0x1220]
mov ecx, dword [eax + 0x302a14]
mov dword [ebp + edx*4 - 0x9e4], ecx
mov edx, dword [ebp - 0x5b4]
add edx, 1
mov dword [ebp - 0x5b4], edx
jmp 0x40bb0e
jmp 0x40ba00
cmp dword [ebp - 0x5b4], 2
jle 0x40bb19
jmp 0x40bb1e
jmp 0x40b995
cmp dword [ebp - 0x5b4], 2
jle 0x40bb29
jmp 0x40bb2e
jmp 0x40b966
cmp dword [ebp - 0x5b4], 0
jne 0x40bb96
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5b8]
call fcn.00403d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5a0]
call fcn.00403d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c8]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x128]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5cc]
call fcn.00403d20
jmp 0x40c0c8
cmp dword [ebp - 0x5b4], 0
jle 0x40be38
mov dword [ebp - 0x121c], 0
jmp 0x40bbbe
mov eax, dword [ebp - 0x121c]
add eax, 1
mov dword [ebp - 0x121c], eax
mov ecx, dword [ebp - 0x121c]
cmp ecx, dword [ebp - 0x5b4]
jge 0x40be38
push 0x49db5b
lea ecx, [ebp - 0x18]
call fcn.00403d60
mov edx, dword [ebp - 0x121c]
mov eax, dword [ebp + edx*4 - 0x59c]
sub eax, 5
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x121c]
mov edx, dword [ebp + ecx*4 - 0x9e4]
add edx, 5
mov dword [ebp - 0x5a8], edx
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x138], eax
jmp 0x40bc26
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x138]
cmp edx, dword [ebp - 0x148]
jge 0x40bda9
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x134], eax
jmp 0x40bc55
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x134]
cmp edx, dword [ebp - 0x5a8]
jge 0x40bda4
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x1220]
call fcn.0040ae50
cmp eax, dword [ebp - 0x5b0]
je 0x40bd9f
mov dword [ebp - 0x5bc], 0
jmp 0x40bca7
mov edx, dword [ebp - 0x5bc]
add edx, 1
mov dword [ebp - 0x5bc], edx
mov eax, dword [ebp - 0x5bc]
cmp eax, dword [ebp - 0x1c]
jge 0x40bd9f
mov ecx, dword [ebp - 0x5b0]
push ecx
mov edx, dword [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x5bc]
push edx
mov ecx, dword [ebp - 0x1220]
call fcn.0040ac40
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 1
jne 0x40bd9a
mov eax, dword [ebp - 0x5bc]
push eax
mov ecx, dword [ebp - 0x1220]
add ecx, 0x98
call fcn.00444fe0
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.0040dc60
mov ecx, dword [ebp - 0x138]
add ecx, 2
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x150], 1
jne 0x40bd45
mov edx, dword [ebp - 0x1220]
mov eax, dword [edx + 0x302a18]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x150], 2
jne 0x40bd7d
mov ecx, dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ecx + 0x302a14]
sub eax, dword [edx + 0x302a18]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x1220]
add eax, dword [ecx + 0x302a18]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x150], 3
jne 0x40bd98
mov edx, dword [ebp - 0x1220]
mov eax, dword [edx + 0x302a14]
mov dword [ebp - 0x15c], eax
jmp 0x40bd9f
jmp 0x40bc98
jmp 0x40bc46
jmp 0x40bc17
lea ecx, [ebp - 0x18]
call fcn.00403da0
test eax, eax
jle 0x40be33
lea ecx, [ebp - 0x128]
call fcn.00403da0
test eax, eax
jne 0x40bde1
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x128]
call fcn.00403d40
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x5c4], edx
jmp 0x40be33
lea ecx, [ebp - 0x5c8]
call fcn.00403da0
test eax, eax
jne 0x40be0a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c8]
call fcn.00403d40
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x14], ecx
jmp 0x40be33
lea ecx, [ebp - 0x5a0]
call fcn.00403da0
test eax, eax
jne 0x40be33
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x5a0]
call fcn.00403d40
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x10], eax
jmp 0x40be38
jmp 0x40bbaf
lea ecx, [ebp - 0x5c8]
call fcn.00403da0
mov esi, eax
lea ecx, [ebp - 0x128]
call fcn.00403da0
cmp esi, eax
jne 0x40bef3
lea ecx, [ebp - 0x5c8]
call fcn.00403da0
mov esi, eax
lea ecx, [ebp - 0x5a0]
call fcn.00403da0
cmp esi, eax
jne 0x40bef3
lea ecx, [ebp - 0x5c8]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd624]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x2fd634], eax
lea ecx, [ebp - 0x5c8]
call fcn.00403da0
mov esi, eax
lea ecx, [ebp - 0x5a0]
call fcn.00403da0
cmp esi, eax
jne 0x40beee
lea ecx, [ebp - 0x5a0]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd62c]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x2fd638], eax
jmp 0x40c06e
lea ecx, [ebp - 0x128]
call fcn.00403da0
mov esi, eax
lea ecx, [ebp - 0x5a0]
call fcn.00403da0
cmp esi, eax
jne 0x40bf75
lea ecx, [ebp - 0x128]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd624]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x5c4]
mov dword [edx + 0x2fd634], eax
lea ecx, [ebp - 0x5a0]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd62c]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x2fd638], eax
jmp 0x40c06e
lea ecx, [ebp - 0x128]
call fcn.00403da0
mov esi, eax
lea ecx, [ebp - 0x5c8]
call fcn.00403da0
cmp esi, eax
jne 0x40bff4
lea ecx, [ebp - 0x128]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd624]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x5c4]
mov dword [edx + 0x2fd634], eax
lea ecx, [ebp - 0x5c8]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd62c]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x2fd638], eax
jmp 0x40c06e
lea ecx, [ebp - 0x5c8]
call fcn.00403da0
mov esi, eax
lea ecx, [ebp - 0x5a0]
call fcn.00403da0
cmp esi, eax
jne 0x40c06e
lea ecx, [ebp - 0x5c8]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd624]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x2fd634], eax
lea ecx, [ebp - 0x5a0]
call fcn.00411270
push eax
call fcn.0047d28b
add esp, 4
mov ecx, dword [ebp - 0x1220]
fstp qword [ecx + 0x2fd62c]
mov edx, dword [ebp - 0x1220]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x2fd638], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5b8]
call fcn.00403d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5a0]
call fcn.00403d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c8]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x128]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5cc]
call fcn.00403d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0047ac28
mov esp, ebp
pop ebp
ret 4