Function at 0x5e0b0c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x5e0b15
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5e1bdf
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5e0b72
mov eax, ebx
mov edx, dword [0x4c8e80]
call fcn.0040407c
test al, al
jne 0x5e0b72
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebp + 0x10]
jl 0x5e0b5a
cmp eax, dword [ebp + 0xc]
jle 0x5e0b72
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
cmp eax, dword [ebp + 0x10]
jl 0x5e1b89
cmp eax, dword [ebp + 0xc]
jg 0x5e1b89
mov eax, dword [0x681a54]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5e0bcb
mov eax, dword [0x681a40]
add eax, eax
mov edx, dword [0x681a38]
sub edx, eax
sar edx, 1
jns 0x5e0b97
adc edx, 0
add edx, dword [0x681a40]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov edi, dword [0x681a3c]
sub edi, dword [eax + 0x28]
mov eax, edi
add eax, 0x1e
push eax
lea eax, [ebp - 0x4c]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
mov eax, dword [ebp - 0x10]
sub eax, 0x50
call fcn.0041cd1c
jmp 0x5e0c02
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov edi, dword [ebx + 0x40]
mov ecx, edi
add ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x44]
mov eax, edi
call fcn.0041cd1c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
add eax, dword [0x681a40]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
lea eax, [ebp - 0x4c]
call fcn.005e0a58
mov eax, dword [esi + 0x10]
call fcn.0042a930
mov dword [ebp - 8], eax
push 0
push 1
fld qword [0x681a24]
fadd dword [0x5e1bf0]
call fcn.00402dfc
push edx
push eax
call fcn.00432900
mov edx, eax
mov eax, dword [esi + 0x10]
call fcn.0042a938
mov eax, dword [esi + 0x10]
call fcn.0042a930
cmp eax, 2
jle 0x5e0c55
mov edx, 2
mov eax, dword [esi + 0x10]
call fcn.0042a938
test ebx, ebx
jne 0x5e0d28
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd8], 1
jle 0x5e1b7e
mov edx, 9
mov eax, dword [esi + 0xc]
call fcn.0042a5c0
mov edx, 0x5e1bfc
mov eax, dword [esi + 0xc]
call fcn.0042a548
mov edx, 0x808080
mov eax, dword [esi + 0xc]
call fcn.0042a320
mov ebx, dword [esi + 0xc]
mov eax, ebx
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a2c]
call fcn.00402dfc
mov edx, eax
mov eax, ebx
call fcn.0042a508
push 0x5e1c0c
lea edx, [ebp - 0x74]
mov eax, dword [ebp + 8]
inc eax
call fcn.00409afc
push dword [ebp - 0x74]
push 0x5e1c18
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405000
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
push 1
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f40
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x46c0f8]
call fcn.0040407c
test al, al
je 0x5e0e1f
mov eax, ebx
mov edx, dword [0x46c0f8]
call fcn.004040a0
mov edi, eax
mov edx, dword [edi + 0x68]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
mov edx, dword [0x46c0f8]
call fcn.004040a0
mov eax, edi
lea edx, [ebp - 0x20]
call fcn.0047f308
mov eax, ebx
mov edx, dword [0x46c0f8]
call fcn.004040a0
mov eax, dword [edi + 0x68]
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, dword [esi + 0xc]
call fcn.0042a508
mov eax, ebx
mov edx, dword [0x46c0f8]
call fcn.004040a0
mov eax, edi
mov dl, byte [eax + 0x16c]
test dl, dl
jne 0x5e0dbe
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5e0dd3
cmp dl, 1
jne 0x5e0dcc
mov dword [ebp - 0x10], 2
jmp 0x5e0dd3
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f40
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x46c994]
call fcn.0040407c
test al, al
je 0x5e0edf
mov eax, ebx
mov edx, dword [0x46c994]
call fcn.004040a0
mov edi, eax
mov edx, dword [edi + 0x68]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
mov edx, dword [0x46c994]
call fcn.004040a0
mov eax, dword [edi + 0x68]
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, dword [esi + 0xc]
call fcn.0042a508
mov eax, ebx
mov edx, dword [0x46c994]
call fcn.004040a0
mov eax, edi
lea edx, [ebp - 0x20]
call fcn.0047f308
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
push 0
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f40
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.0040407c
test al, al
je 0x5e113c
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov edi, eax
mov edx, dword [edi + 0x68]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, dword [edi + 0x68]
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, dword [esi + 0xc]
call fcn.0042a508
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x224], 0
jne 0x5e0f61
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x5e0f7d
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x224], 1
jne 0x5e0f76
mov dword [ebp - 0x14], 2
jmp 0x5e0f7d
mov dword [ebp - 0x14], 1
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov edi, eax
mov eax, dword [edi + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x5e1036
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.0047f308
cmp dword [ebp - 0x78], 0
je 0x5e1036
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, edi
lea edx, [ebp - 0x7c]
call fcn.0047f308
mov eax, dword [ebp - 0x7c]
call fcn.00404f40
push eax
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, edi
lea edx, [ebp - 0x80]
call fcn.0047f308
mov eax, dword [ebp - 0x80]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
jmp 0x5e1b7e
mov eax, dword [esi + 0xc]
call fcn.0042a500
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, dword [edi + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x18]
jge 0x5e108b
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, dword [edi + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x5e1b7e
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0
mov eax, ebx
mov edx, dword [0x46d468]
call fcn.004040a0
mov eax, dword [eax + 0x220]
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f40
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [esi + 0xc]
call fcn.0042a500
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
call fcn.00402dfc
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
inc dword [ebp - 0x10]
dec dword [ebp - 0x34]
jne 0x5e10a2
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x52eb04]
call fcn.0040407c
test al, al
je 0x5e1245
mov eax, ebx
mov edx, dword [0x52eb04]
call fcn.004040a0
mov edx, dword [eax + 0x68]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
mov edx, dword [0x52eb04]
call fcn.004040a0
mov eax, dword [eax + 0x68]
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, dword [esi + 0xc]
call fcn.0042a508
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
mov edx, dword [0x52eb04]
call fcn.004040a0
lea edx, [ebp - 0x84]
call fcn.00530a40
cmp dword [ebp - 0x84], 0
je 0x5e1b7e
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
mov edx, dword [0x52eb04]
call fcn.004040a0
lea edx, [ebp - 0x88]
call fcn.00530a40
mov eax, dword [ebp - 0x88]
call fcn.00404f40
push eax
mov eax, ebx
mov edx, dword [0x52eb04]
call fcn.004040a0
lea edx, [ebp - 0x8c]
call fcn.00530a40
mov eax, dword [ebp - 0x8c]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x46c7d8]
call fcn.0040407c
test al, al
je 0x5e130f
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi + 0xc]
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, dword [esi + 0xc]
call fcn.0042a508
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
mov edx, dword [0x46c7d8]
call fcn.004040a0
lea edx, [ebp - 0x90]
call fcn.0047f308
mov eax, dword [ebp - 0x90]
call fcn.00404f40
push eax
mov eax, ebx
mov edx, dword [0x46c7d8]
call fcn.004040a0
lea edx, [ebp - 0x94]
call fcn.0047f308
mov eax, dword [ebp - 0x94]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x43aeb4]
call fcn.0040407c
test al, al
je 0x5e1345
mov eax, ebx
mov edx, dword [0x43aeb4]
call fcn.004040a0
mov eax, dword [eax + 0x168]
mov ecx, dword [eax + 0xc]
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.0042b4d0
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x43a560]
call fcn.0040407c
test al, al
jne 0x5e137a
lea edx, [ebp - 0x194]
mov eax, dword [ebx]
call fcn.00403e40
lea edx, [ebp - 0x194]
mov eax, 0x5e1c1c
call fcn.00402d1c
dec eax
jle 0x5e1590
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov eax, dword [esi + 0x10]
call fcn.0042a804
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, ebx
mov edx, dword [0x43a560]
call fcn.0040407c
test al, al
je 0x5e13f1
mov eax, ebx
mov edx, dword [0x43a560]
call fcn.004040a0
mov eax, dword [eax + 0x168]
call fcn.0042a804
mov edx, eax
mov eax, dword [esi + 0x10]
call fcn.0042a80c
mov eax, ebx
mov edx, dword [0x43a560]
call fcn.004040a0
mov eax, dword [eax + 0x168]
call fcn.0042a930
mov edx, eax
mov eax, dword [esi + 0x10]
call fcn.0042a938
jmp 0x5e140f
cmp dword [ebx + 0x80], 0
je 0x5e140f
mov eax, dword [ebx + 0x80]
call fcn.00409cdc
mov edx, eax
mov eax, dword [esi + 0x10]
call fcn.0042a80c
cmp dword [ebx + 0x4c], 2
jg 0x5e1457
mov eax, dword [ebx + 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx + 0x40]
add ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
call fcn.0041cd1c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
add eax, dword [0x681a40]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.005e0aa0
jmp 0x5e1575
cmp dword [ebx + 0x48], 2
jg 0x5e149f
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
call fcn.0041cd1c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
add eax, dword [0x681a40]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.005e0aa0
jmp 0x5e1575
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx + 0x40]
add ecx, dword [ebx + 0x48]
add ecx, dword [0x681a40]
mov edx, dword [ebx + 0x44]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x40]
add eax, dword [0x681a40]
call fcn.0041cd1c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
lea edx, [ebp - 0x194]
mov eax, dword [ebx]
call fcn.00403e40
lea edx, [ebp - 0x194]
mov eax, 0x5e1c1c
call fcn.00402d1c
dec eax
jle 0x5e150d
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
jmp 0x5e1513
dec dword [ebp - 0x44]
dec dword [ebp - 0x40]
mov edx, dword [ebx + 8]
mov eax, 0x5e1c30
call fcn.00405284
dec eax
jne 0x5e1563
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, ebx
mov edx, dword [0x552638]
call fcn.004040a0
mov edx, dword [eax + 0x184]
mov eax, dword [esi + 0x14]
call fcn.0042ab0c
mov eax, ebx
mov edx, dword [0x552638]
call fcn.004040a0
mov edx, dword [eax + 0x184]
mov eax, dword [esi + 0x10]
call fcn.0042a80c
lea eax, [ebp - 0x4c]
call fcn.005e0a58
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.0042b464
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
call fcn.0042a80c
jmp 0x5e1b7e
lea edx, [ebp - 0x194]
mov eax, dword [ebx]
call fcn.00403e40
lea edx, [ebp - 0x194]
mov eax, 0x5e1c38
call fcn.00402d1c
dec eax
jle 0x5e1703
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov byte [ebp - 0x21], al
mov eax, dword [esi + 0x10]
call fcn.0042a804
mov dword [ebp - 0x28], eax
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
cmp dword [ebx + 0x80], 0
je 0x5e15f2
mov eax, dword [ebx + 0x80]
call fcn.00409cdc
mov edx, eax
mov eax, dword [esi + 0x10]
call fcn.0042a80c
cmp dword [ebx + 0xc], 2
jne 0x5e1628
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx + 0x40]
add ecx, dword [ebx + 0x48]
add ecx, dword [0x681a40]
mov edx, dword [ebx + 0x44]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x40]
add eax, dword [0x681a40]
call fcn.0041cd1c
jmp 0x5e168d
cmp dword [ebx + 0xc], 3
jne 0x5e165e
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
add eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx + 0x40]
add ecx, dword [0x681a40]
mov edx, dword [ebx + 0x44]
add edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x48]
add eax, dword [0x681a40]
call fcn.0041cd1c
jmp 0x5e168d
mov eax, dword [ebx + 0x44]
add eax, dword [ebx + 0x4c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebx + 0x40]
add ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
call fcn.0041cd1c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x681a40]
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
dec eax
push eax
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebx + 0xc]
add eax, 0xfffffffe
sub eax, 2
jae 0x5e16b7
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.005e0aa0
jmp 0x5e16e8
push dword [0x681a28]
push dword [0x681a24]
push dword [0x681a30]
push dword [0x681a2c]
mov eax, dword [esi + 0x10]
call fcn.0042a804
push eax
mov ecx, dword [ebx + 0xc]
sub ecx, 4
lea edx, [ebp - 0x4c]
mov eax, esi
call fcn.005533b8
mov dl, byte [ebp - 0x21]
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
call fcn.0042a80c
jmp 0x5e1b7e
mov eax, ebx
mov edx, dword [0x4c8e80]
call fcn.0040407c
test al, al
je 0x5e1b7e
mov edx, 0xffffff
mov eax, dword [esi + 0x14]
call fcn.0042ab0c
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, ebx
mov edx, dword [0x4c8e80]
call fcn.004040a0
mov ebx, eax
mov edx, dword [ebx + 0x68]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x68]
call fcn.0042a500
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, dword [esi + 0xc]
call fcn.0042a508
mov edx, dword [ebx + 0x68]
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x68]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx + 0x68]
call fcn.0042a500
mov edx, eax
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x68]
call fcn.0042a508
mov edx, dword [ebx + 0x80]
mov eax, 0x5e1c48
call fcn.00405284
test eax, eax
setg al
neg al
sbb eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x21c]
dec eax
test eax, eax
jl 0x5e1b73
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebx + 0x24c]
dec eax
test eax, eax
jl 0x5e1b67
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
je 0x5e1811
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [edi + 0x54]
call dword [edi + 0x50]
cmp dword [ebp - 0x5c], 0xffffd8f1
je 0x5e1b5b
jmp 0x5e1822
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004cf81c
sub dword [ebp - 0x54], 0
sub dword [ebp - 0x50], 0
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, dword [ebp - 0x58]
cmp edx, dword [ebp + 0x10]
jl 0x5e1b5b
cmp edx, dword [ebp + 0xc]
jge 0x5e1b5b
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x40]
add eax, dword [0x681a40]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_OffsetRect
add dword [ebp - 0x54], 2
add dword [ebp - 0x50], 2
fild dword [ebp - 0x54]
fmul qword [0x681a24]
call fcn.00402dfc
push eax
fild dword [ebp - 0x50]
fmul qword [0x681a2c]
call fcn.00402dfc
push eax
fild dword [ebp - 0x58]
fmul qword [0x681a2c]
call fcn.00402dfc
push eax
fild dword [ebp - 0x5c]
fmul qword [0x681a24]
call fcn.00402dfc
mov edx, eax
mov eax, esi
pop ecx
call fcn.0042b41c
push 1
push 1
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_OffsetRect
sub dword [ebp - 0x54], 2
sub dword [ebp - 0x50], 2
fild dword [ebp - 0x50]
fmul qword [0x681a2c]
call fcn.00402dfc
dec eax
push eax
lea eax, [ebp - 0x4c]
push eax
fild dword [ebp - 0x54]
fmul qword [0x681a24]
call fcn.00402dfc
dec eax
push eax
fild dword [ebp - 0x58]
fmul qword [0x681a2c]
call fcn.00402dfc
push eax
fild dword [ebp - 0x5c]
fmul qword [0x681a24]
call fcn.00402dfc
pop edx
pop ecx
call fcn.0041cd1c
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004d0ec4
mov eax, dword [ebp - 0x198]
xor edx, edx
call fcn.0055696c
test al, al
je 0x5e1939
mov dword [ebp - 0x1c], 2
jmp 0x5e193e
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jne 0x5e195e
fld dword [0x5e1c4c]
fmul qword [0x681a24]
fadd dword [0x5e1bf0]
call fcn.00402dfc
sub dword [ebp - 0x44], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004d0ec4
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.004cf81c
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x6c]
sub edx, 2
mov eax, dword [0x67cbac]
call fcn.0047ea9c
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp - 0x20], 0
je 0x5e1b5b
cmp dword [ebp - 0x2c], 0
jne 0x5e19cd
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jg 0x5e1a65
lea ecx, [ebp - 0x20]
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x220]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
push 0
push 2
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fmul qword [0x681a2c]
call fcn.00402dfc
push edx
push eax
mov eax, dword [esi + 0xc]
call fcn.0042a500
cdq
xor eax, edx
sub eax, edx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00405c28
push eax
push 1
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f40
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
jmp 0x5e1b5b
push 3
push 2
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5e1b5b
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
mov eax, dword [0x67cbac]
mov eax, dword [eax + 0x220]
mov edx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x14]
call fcn.0042ac20
mov dl, 1
mov eax, dword [esi + 0x14]
call fcn.0042ac28
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404f40
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405140
push eax
mov eax, esi
call fcn.0042b86c
push eax
call sub.user32.dll_DrawTextA
mov eax, dword [esi + 0xc]
call fcn.0042a500
cdq
xor eax, edx
sub eax, edx
add eax, eax
lea eax, [eax + eax*2]
mov ecx, 5
cdq
idiv ecx
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
call fcn.00402dfc
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_OffsetRect
fild dword [ebp - 0x50]
fmul qword [0x681a2c]
call fcn.00402dfc
push edx
push eax
mov eax, dword [ebp - 0x40]
cdq
cmp edx, dword [esp + 4]
jne 0x5e1b39
cmp eax, dword [esp]
pop edx
pop eax
jb 0x5e1b4f
jmp 0x5e1b3d
pop edx
pop eax
jl 0x5e1b4f
fild dword [ebp - 0x50]
fmul qword [0x681a2c]
call fcn.00402dfc
dec eax
mov dword [ebp - 0x40], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x5e1a96
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x5e17e3
inc dword [ebp - 0x10]
dec dword [ebp - 0x34]
jne 0x5e17c9
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x10]
call fcn.0042a938
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x10]
call fcn.0042a938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e1be6
lea eax, [ebp - 0x198]
call fcn.00404c80
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.00404ca4
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00404ca4
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00404ca4
lea eax, [ebp - 0x74]
call fcn.00404c80
lea eax, [ebp - 0x20]
call fcn.00404c80
ret