Function at 0x410eeb
Capabilities:
Check http status code

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x80]
movaps xmmword [rbp - 0x20], xmm6
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
cmp dword [rbp + 0x10], 1
jne 0x4113fd
cmp dword [rbp + 0x18], 1
je 0x410f19
cmp dword [rbp + 0x18], 0x29
jne 0x410f46
mov edx, 0xf
mov ecx, 0
call fcn.0041018e
mov edx, 0x11
mov ecx, 0
call fcn.0041018e
mov edx, 0x13
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x15
je 0x410f52
cmp dword [rbp + 0x18], 0x3d
jne 0x410f7f
mov edx, 0x15
mov ecx, 0
call fcn.0041018e
mov edx, 0x17
mov ecx, 0
call fcn.0041018e
mov edx, 0x19
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x51
jne 0x410fd0
mov edx, 0xb
mov ecx, 0
call fcn.0041018e
mov edx, 0xd
mov ecx, 0
call fcn.0041018e
mov edx, 0xf
mov ecx, 0
call fcn.0041018e
mov edx, 0x11
mov ecx, 0
call fcn.0041018e
mov edx, 0x13
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x65
je 0x410fdf
cmp dword [rbp + 0x18], 0x8d
jne 0x41102a
mov edx, 0x11
mov ecx, 0
call fcn.0041018e
mov edx, 0x13
mov ecx, 0
call fcn.0041018e
mov edx, 0x15
mov ecx, 0
call fcn.0041018e
mov edx, 0x17
mov ecx, 0
call fcn.0041018e
mov edx, 0x19
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x79
jne 0x41107b
mov edx, 0xf
mov ecx, 0
call fcn.0041018e
mov edx, 0x11
mov ecx, 0
call fcn.0041018e
mov edx, 0x13
mov ecx, 0
call fcn.0041018e
mov edx, 0x15
mov ecx, 0
call fcn.0041018e
mov edx, 0x17
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x9f
jle 0x4110e5
cmp dword [rbp + 0x18], 0x104
jg 0x4110e5
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x4110e5
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 1
mov edx, eax
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x10d
jle 0x41114d
cmp dword [rbp + 0x18], 0x172
jg 0x41114d
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x41114d
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x34
mov edx, eax
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x1cb
jle 0x411213
cmp dword [rbp + 0x18], 0x230
jg 0x411213
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x411213
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x25
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x24
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x23
mov edx, eax
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x239
jle 0x4112d3
cmp dword [rbp + 0x18], 0x29e
jg 0x4112d3
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x4112d3
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x4e
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x4d
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x4c
mov edx, eax
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x2f7
jle 0x4113c3
cmp dword [rbp + 0x18], 0x3c0
jg 0x4113c3
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x4113c3
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x42
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x41
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x67
mov edx, eax
mov ecx, 0
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x68
mov edx, eax
mov ecx, 0
call fcn.0041018e
cmp dword [rbp + 0x18], 0x3e7
jle 0x4113fd
cmp dword [rbp + 0x18], 0x514
jg 0x4113fd
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 4
sar eax, 0x1f
sub eax, edx
add eax, 0x1e
mov edx, eax
mov ecx, 0
call fcn.00410e17
cmp dword [rbp + 0x10], 2
jne 0x4117df
cmp dword [rbp + 0x18], 0xc8
jg 0x411489
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff88888889
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 4
cdq
sub ecx, edx
mov edx, ecx
imul edx, edx, 0x1e
sub eax, edx
mov edx, eax
cmp edx, 1
jne 0x411489
call sub.msvcrt.dll_rand
cdq
shr edx, 0x1e
add eax, edx
and eax, 3
sub eax, edx
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 1
jne 0x411459
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
cmp dword [rbp - 0x28], 3
jg 0x411489
mov eax, dword [rbp - 0x28]
cmp eax, dword [rbp - 0x24]
je 0x411483
mov eax, dword [rbp - 0x28]
shl eax, 2
add eax, 9
mov edx, eax
mov ecx, 1
call fcn.0041018e
add dword [rbp - 0x28], 1
jmp 0x411460
cmp dword [rbp + 0x18], 0xc8
jle 0x4114d6
cmp dword [rbp + 0x18], 0xdc
jg 0x4114d6
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x4114d6
mov edx, 0x12
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0xdc
jle 0x41153e
cmp dword [rbp + 0x18], 0x12c
jg 0x41153e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff92492493
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 2
cdq
sub ecx, edx
mov edx, ecx
mov ecx, edx
shl ecx, 3
sub ecx, edx
sub eax, ecx
mov edx, eax
cmp edx, 1
jne 0x41153e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 1
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x1a
mov edx, eax
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x15e
jle 0x41158b
cmp dword [rbp + 0x18], 0x172
jg 0x41158b
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x41158b
mov edx, 0x16
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x172
jle 0x4115f1
cmp dword [rbp + 0x18], 0x1c2
jg 0x4115f1
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff92492493
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 2
cdq
sub ecx, edx
mov edx, ecx
mov ecx, edx
shl ecx, 3
sub ecx, edx
sub eax, ecx
mov edx, eax
cmp edx, 1
jne 0x4115f1
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 1
sar eax, 0x1f
sub eax, edx
add eax, 0x60
mov edx, eax
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x1cd
je 0x41160c
cmp dword [rbp + 0x18], 0x1f5
je 0x41160c
cmp dword [rbp + 0x18], 0x21d
jne 0x411639
mov edx, 0xd
mov ecx, 1
call fcn.0041018e
mov edx, 0x11
mov ecx, 1
call fcn.0041018e
mov edx, 0x15
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x1e1
je 0x411654
cmp dword [rbp + 0x18], 0x209
je 0x411654
cmp dword [rbp + 0x18], 0x231
jne 0x411681
mov edx, 0x11
mov ecx, 1
call fcn.0041018e
mov edx, 0x15
mov ecx, 1
call fcn.0041018e
mov edx, 0x19
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x230
jle 0x4116ed
cmp dword [rbp + 0x18], 0x35d
jg 0x4116ed
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x4116ed
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 4
sar eax, 0x1f
sub edx, eax
mov eax, edx
add eax, 5
mov edx, eax
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x230
jle 0x411757
cmp dword [rbp + 0x18], 0x35d
jg 0x411757
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
sub ecx, eax
mov edx, ecx
cmp edx, 0xb
jne 0x411757
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 4
sar eax, 0x1f
sub eax, edx
add eax, 0x23
mov edx, eax
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x320
jle 0x4117a5
cmp dword [rbp + 0x18], 0x3c1
jg 0x4117a5
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff88888889
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 3
cdq
sub ecx, edx
mov edx, ecx
mov ecx, edx
shl ecx, 4
sub ecx, edx
sub eax, ecx
mov edx, eax
cmp edx, 1
jne 0x4117a5
mov edx, 0x14
mov ecx, 1
call fcn.0041018e
cmp dword [rbp + 0x18], 0x3e7
jle 0x4117df
cmp dword [rbp + 0x18], 0x514
jg 0x4117df
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 4
sar eax, 0x1f
sub eax, edx
add eax, 0x1e
mov edx, eax
mov ecx, 1
call fcn.00410e17
cmp dword [rbp + 0x10], 3
jne 0x411c55
cmp dword [rbp + 0x18], 1
je 0x4117f5
cmp dword [rbp + 0x18], 0x3d
jne 0x411822
mov edx, 0xf
mov ecx, 3
call fcn.0041018e
mov edx, 0x11
mov ecx, 2
call fcn.0041018e
mov edx, 0x13
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0x1f
je 0x41182e
cmp dword [rbp + 0x18], 0x5b
jne 0x41185b
mov edx, 0x15
mov ecx, 2
call fcn.0041018e
mov edx, 0x17
mov ecx, 2
call fcn.0041018e
mov edx, 0x19
mov ecx, 3
call fcn.0041018e
cmp dword [rbp + 0x18], 0x77
jle 0x4118c2
cmp dword [rbp + 0x18], 0xdc
jg 0x4118c2
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x4118c2
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
add eax, 3
mov edx, eax
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0xef
jle 0x41192a
cmp dword [rbp + 0x18], 0x154
jg 0x41192a
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x41192a
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x31
mov edx, eax
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0x167
jle 0x4119c5
cmp dword [rbp + 0x18], 0x1cc
jg 0x4119c5
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x4119c5
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x15
mov edx, eax
mov ecx, 2
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x3d
mov edx, eax
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0x1df
jle 0x411a60
cmp dword [rbp + 0x18], 0x244
jg 0x411a60
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x411a60
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub edx, eax
mov eax, edx
sub eax, 0x21
mov edx, eax
mov ecx, 3
call fcn.0041018e
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
sar edx, 2
sar eax, 0x1f
sub eax, edx
add eax, 0x49
mov edx, eax
mov ecx, 3
call fcn.0041018e
cmp dword [rbp + 0x18], 0x257
jle 0x411ac5
cmp dword [rbp + 0x18], 0x2ed
jg 0x411ac5
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff88888889
shr rdx, 0x20
add edx, eax
mov ecx, edx
sar ecx, 4
cdq
sub ecx, edx
mov edx, ecx
imul edx, edx, 0x1e
sub eax, edx
mov edx, eax
test edx, edx
jne 0x411ac5
mov dword [rbp - 0x2c], 0
cmp dword [rbp - 0x2c], 4
jg 0x411ac5
mov edx, dword [rbp - 0x2c]
mov eax, edx
add eax, eax
add eax, edx
add eax, 0xa
mov edx, eax
mov ecx, 3
call fcn.0041018e
add dword [rbp - 0x2c], 1
jmp 0x411aa1
cmp dword [rbp + 0x18], 0x2ed
jle 0x411b5a
cmp dword [rbp + 0x18], 0x33d
jg 0x411b5a
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x411b5a
cmp dword [rbp + 0x18], 0xc8
jg 0x411b5a
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 4
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x411b5a
movss xmm0, dword [0x005052e0]
cvttss2si eax, xmm0
mov edx, eax
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0x33d
jle 0x411bb3
cmp dword [rbp + 0x18], 0x38d
jg 0x411bb3
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x411bb3
movss xmm0, dword [0x005052e0]
cvttss2si eax, xmm0
mov edx, eax
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0x38d
jle 0x411c0b
cmp dword [rbp + 0x18], 0x3d3
jg 0x411c0b
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 2
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub ecx, eax
mov edx, ecx
test edx, edx
jne 0x411c0b
movss xmm0, dword [0x005052e0]
cvttss2si eax, xmm0
mov edx, eax
mov ecx, 2
call fcn.0041018e
cmp dword [rbp + 0x18], 0x3e7
jle 0x411c55
cmp dword [rbp + 0x18], 0x514
jg 0x411c55
mov eax, dword [rbp + 0x18]
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 4
sar eax, 0x1f
sub eax, edx
lea ebx, [rax + 0x28]
call sub.msvcrt.dll_rand
cdq
shr edx, 0x1f
add eax, edx
and eax, 1
sub eax, edx
add eax, 2
mov edx, ebx
mov ecx, eax
call fcn.00410e17
cmp dword [rbp + 0x10], 4
jne 0x41255d
cmp dword [rbp + 0x18], 1
jne 0x411cf5
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89f4]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88dc]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d89f8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89fc]
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d8920]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x29
jne 0x411d8b
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88dc]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8a00]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d89f8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89fc]
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88f4]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x51
jne 0x411e81
movss xmm0, dword [0x004d8a04]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89f4]
movss xmm2, dword [0x004d8904]
movss xmm1, dword [0x004d88e0]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89f4]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88dc]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d89f8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d8a08]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8980]
movss xmm2, dword [0x004d8904]
movss xmm1, dword [0x004d89b8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89fc]
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d8920]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x79
jne 0x411f77
movss xmm0, dword [0x004d8a04]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d8904]
movss xmm1, dword [0x004d88e0]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88dc]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8a00]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d89f8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d8a08]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8a08]
movss xmm2, dword [0x004d8904]
movss xmm1, dword [0x004d89b8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89fc]
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88f4]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0xa1
jne 0x41209c
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89f4]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88dc]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d89f8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d8a0c]
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d8920]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d89bc]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88dc]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89f0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8a00]
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d89f8]
mov ecx, 4
call fcn.00410bc6
movss xmm0, dword [0x004d89fc]
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movss xmm1, dword [0x004d88f4]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0xc7
jle 0x4121f8
cmp dword [rbp + 0x18], 0x1f4
jg 0x4121f8
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 4
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x4121f8
pxor xmm0, xmm0
movss dword [rbp - 0x30], xmm0
mov dword [rbp - 0x34], 1
cmp dword [rbp - 0x34], 5
jg 0x4121f8
nop
call sub.msvcrt.dll_rand
mov edx, eax
movsxd rax, edx
imul rax, rax, 0x66666667
shr rax, 0x20
mov ecx, eax
sar ecx, 1
mov eax, edx
sar eax, 0x1f
sub ecx, eax
mov eax, ecx
shl eax, 2
add eax, ecx
mov ecx, edx
sub ecx, eax
cvtsi2sd xmm0, ecx
movsd xmm1, qword [0x004d8a10]
divsd xmm0, xmm1
movapd xmm1, xmm0
movsd xmm0, qword [0x004d8a18]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [rbp - 0x40], xmm0
movss xmm0, dword [rbp - 0x40]
ucomiss xmm0, dword [rbp - 0x30]
jp 0x412171
movss xmm0, dword [rbp - 0x40]
ucomiss xmm0, dword [rbp - 0x30]
jne 0x412171
jmp 0x412105
movss xmm0, dword [rbp - 0x40]
movss dword [rbp - 0x30], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
mov ecx, edx
sar ecx, 4
cdq
sub ecx, edx
mov edx, ecx
imul edx, edx, 0x32
sub eax, edx
mov edx, eax
cvtsi2sd xmm0, edx
movsd xmm1, qword [0x004d8a20]
divsd xmm0, xmm1
movapd xmm1, xmm0
movsd xmm0, qword [0x004d8a28]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
mov edx, dword [rbp - 0x34]
mov eax, edx
add eax, eax
add eax, edx
add eax, 7
cvtsi2ss xmm1, eax
movss dword [rsp + 0x20], xmm0
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
mov ecx, 4
call fcn.00410bc6
add dword [rbp - 0x34], 1
jmp 0x4120fa
cmp dword [rbp + 0x18], 0x21c
jle 0x412266
cmp dword [rbp + 0x18], 0x235
jg 0x412266
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x412266
movss xmm0, dword [0x004d89c0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8a30]
movss xmm2, dword [0x004d8930]
movss xmm1, dword [0x004d88e0]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x24e
jle 0x4122d4
cmp dword [rbp + 0x18], 0x267
jg 0x4122d4
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x4122d4
movss xmm0, dword [0x004d89c0]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d88c8]
movss xmm2, dword [0x004d8930]
movss xmm1, dword [0x004d89b8]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x280
jle 0x412342
cmp dword [rbp + 0x18], 0x299
jg 0x412342
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x412342
movss xmm0, dword [0x004d8a34]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d88d0]
movss xmm2, dword [0x004d8930]
movss xmm1, dword [0x004d88e0]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x2b2
jle 0x4123b0
cmp dword [rbp + 0x18], 0x2cb
jg 0x4123b0
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x4123b0
movss xmm0, dword [0x004d8a34]
movss dword [rsp + 0x20], xmm0
movss xmm3, dword [0x004d8924]
movss xmm2, dword [0x004d8930]
movss xmm1, dword [0x004d89b8]
mov ecx, 4
call fcn.00410bc6
cmp dword [rbp + 0x18], 0x2ed
jle 0x41253c
cmp dword [rbp + 0x18], 0x3b6
jg 0x41253c
mov ecx, dword [rbp + 0x18]
movsxd rax, ecx
imul rax, rax, 0x66666667
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 2
sub ecx, eax
mov edx, ecx
cmp edx, 1
jne 0x41253c
pxor xmm0, xmm0
movss dword [rbp - 0x38], xmm0
mov dword [rbp - 0x3c], 1
cmp dword [rbp - 0x3c], 3
jg 0x41253c
nop
call sub.msvcrt.dll_rand
mov edx, eax
movsxd rax, edx
imul rax, rax, 0x66666667
shr rax, 0x20
mov ecx, eax
sar ecx, 1
mov eax, edx
sar eax, 0x1f
sub ecx, eax
mov eax, ecx
shl eax, 2
add eax, ecx
mov ecx, edx
sub ecx, eax
cvtsi2sd xmm0, ecx
movsd xmm1, qword [0x004d8a10]
divsd xmm0, xmm1
movapd xmm1, xmm0
movsd xmm0, qword [0x004d8a18]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [rbp - 0x44], xmm0
movss xmm0, dword [rbp - 0x44]
ucomiss xmm0, dword [rbp - 0x38]
jp 0x412485
movss xmm0, dword [rbp - 0x44]
ucomiss xmm0, dword [rbp - 0x38]
jne 0x412485
jmp 0x412419
movss xmm0, dword [rbp - 0x44]
movss dword [rbp - 0x38], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
mov ecx, edx
sar ecx, 4
cdq
sub ecx, edx
mov edx, ecx
imul edx, edx, 0x32
sub eax, edx
mov edx, eax
cvtsi2sd xmm0, edx
movsd xmm1, qword [0x004d8a38]
divsd xmm0, xmm1
movapd xmm1, xmm0
movsd xmm0, qword [0x004d8a28]
addsd xmm0, xmm1
cvtsd2ss xmm6, xmm0
mov edx, dword [rbp - 0x3c]
mov eax, edx
shl eax, 2
add eax, edx
lea ebx, [rax + 7]
call sub.msvcrt.dll_rand
mov ecx, eax
movsxd rax, ecx
imul rax, rax, 0x55555556
shr rax, 0x20
mov rdx, rax
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
add eax, eax
add eax, edx
sub ecx, eax
mov edx, ecx
lea eax, [rbx + rdx]
cvtsi2ss xmm0, eax
movss dword [rsp + 0x20], xmm6
pxor xmm3, xmm3
movss xmm2, dword [0x004d896c]
movaps xmm1, xmm0
mov ecx, 4
call fcn.00410bc6
add dword [rbp - 0x3c], 1
jmp 0x41240e
cmp dword [rbp + 0x18], 0x3e7
jle 0x41255d
cmp dword [rbp + 0x18], 0x514
jg 0x41255d
mov edx, 5
mov ecx, 4
call fcn.00410e17
nop
movaps xmm6, xmmword [rbp - 0x20]
add rsp, 0x78
pop rbx
pop rbp
ret