Function at 0x402de2
Capabilities:
Print debug messages

Disassembly:
jmp 0x4d6cc0
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x18], 0
stosw word es:[edi], ax
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
mov ecx, dword [0x5552b0]
mov edx, dword [ecx + 0x5d0]
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x5524]
lea edx, [eax + eax*2]
lea edx, [edx + edx*4]
shl edx, 5
add edx, eax
lea esi, [ecx + edx*4 + 0x698]
mov ecx, eax
shl ecx, 5
add ecx, eax
mov dword [esp + 0x24], esi
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
mov ecx, dword [esi + 0x60]
mov dword [esp + 0x14], eax
mov eax, 0x51eb851f
mov esi, dword [0x5552b0]
imul ecx
sar edx, 5
mov eax, edx
mov ebp, dword [esi + 0x5a60]
shr eax, 0x1f
mov edi, dword [esi + 0x5a5c]
add esp, 4
lea ebx, [edx + eax + 1]
mov eax, 0x51eb851f
imul ecx
imul ebx, ebp
sar edx, 6
mov ecx, edx
add ebx, edi
shr ecx, 0x1f
mov eax, dword [esi + 0x5a68]
lea edi, [edx + ecx + 1]
mov edx, dword [esp + 0x24]
imul edi, ebp
mov ebp, dword [esi + 0x5a5c]
mov ecx, dword [edx + 0x528]
add edi, ebp
cmp ecx, eax
jne 0x4d6e22
mov eax, dword [esi + 0x5524]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x30
lea edx, [eax + eax*2]
lea edx, [edx + edx*4]
shl edx, 5
add edx, eax
mov eax, dword [esi + 0x5d0]
add eax, 0x48
lea ebp, [esi + edx*4 + 0x698]
cmp dword [eax - 4], 1
jne 0x4d6e00
mov edx, dword [esi + 0x5524]
cmp dword [eax], edx
jne 0x4d6e00
mov edx, dword [eax + 0x88]
cmp edx, dword [ebp + 0x528]
je 0x4d6e00
cmp dword [eax + 0xb4], 0x63
je 0x4d6e00
inc dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add eax, 0x114
dec edx
mov dword [esp + 0x14], edx
jne 0x4d6dd5
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x5aa0]
cmp eax, edx
je 0x4d6ea7
cmp ecx, dword [esi + 0x5a68]
je 0x4d70ce
mov ecx, dword [esi + 0x5524]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x30
lea eax, [ecx + ecx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x5d0]
shl edx, 5
add edx, ecx
add eax, 0x48
lea edx, [esi + edx*4 + 0x698]
cmp dword [eax - 4], 1
jne 0x4d6e84
cmp dword [eax], ecx
jne 0x4d6e84
mov ebp, dword [eax + 0x88]
cmp ebp, dword [edx + 0x528]
je 0x4d6e84
cmp dword [eax + 0xb4], 0x63
je 0x4d6e84
inc dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
add eax, 0x114
dec ebp
mov dword [esp + 0x14], ebp
jne 0x4d6e5f
mov eax, dword [esi + 0x5aa0]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jne 0x4d70ce
mov eax, dword [esi + 0x5a5c]
mov ebp, dword [esp + 0x20]
cmp eax, 1
jne 0x4d6eee
cmp dword [ebp + 0x4c], ebx
jle 0x4d6eee
mov eax, dword [esi + 0x5a68]
mov dword [esi + 0x5aa4], eax
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5a6c]
mov dword [eax + 0x5aa8], ecx
mov esi, dword [0x5552b0]
mov eax, dword [ebp + 0x4c]
sub eax, dword [esi + 0x5a60]
lea eax, [eax + eax*4]
shl eax, 1
jmp 0x4d6f27
cmp eax, 2
jne 0x4d6f33
cmp dword [ebp + 0x4c], ebx
jle 0x4d6f33
mov eax, dword [esi + 0x5a68]
mov dword [esi + 0x5aa4], eax
mov eax, dword [0x5552b0]
mov edx, dword [eax + 0x5a6c]
mov dword [eax + 0x5aa8], edx
mov esi, dword [0x5552b0]
mov eax, dword [ebp + 0x4c]
sub eax, dword [esi + 0x5a60]
lea eax, [eax + eax*4]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4d7342
mov ecx, dword [esi + 0x5a80]
cmp ecx, 0xffffffff
je 0x4d7342
mov edx, dword [esi + 0x5d0]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*4 + 0x48]
lea edi, [edx + ecx*4]
lea ecx, [eax + eax*2]
mov edx, eax
lea ecx, [ecx + ecx*4]
shl edx, 5
shl ecx, 5
add edx, eax
add ecx, eax
lea eax, [eax + edx*2]
lea esi, [esi + ecx*4 + 0x698]
mov ecx, dword [eax*4 + 0x552dc4]
push ecx
call fcn.00403210
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x48]
add esp, 4
mov dword [edx + 0x348], ecx
cmp dword [edx + ecx*4 + 0x428], 0
jne 0x4d7000
cmp dword [ebp + 0x4c], ebx
jl 0x4d7342
mov eax, dword [0x5552b0]
mov edx, dword [eax + 0x5a7c]
mov dword [eax + 0x5aa4], edx
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5a80]
mov dword [eax + 0x5aa8], ecx
mov eax, dword [0x5552b0]
mov edx, dword [ebp + 0x4c]
sub edx, dword [eax + 0x5a74]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x529878]
call fcn.0050ef70
pop edi
pop esi
pop ebp
mov dword [esp + 0xc], eax
pop ebx
add esp, 0x118
ret
mov ecx, dword [0x546aa4]
test ecx, ecx
je 0x4d7342
mov ecx, dword [edi]
push ecx
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push edx
lea ecx, [esp + 0x3c]
push str._s____is_considering_a_surprise_attack_against_his_ally__s__s__in__s
push ecx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4d7309
xor edx, edx
mov dword [0x563ad0], edx
mov edi, dword [edx*4 + 0x563aac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x563ad0]
inc edx
cmp edx, 8
mov dword [0x563ad0], edx
jl 0x4d7041
mov edi, 0x549b78
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x563ad0]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [eax*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4d7332
mov eax, dword [esi + 0x5a5c]
mov ebp, dword [esp + 0x20]
cmp eax, 1
jne 0x4d7113
cmp dword [ebp + 0x4c], edi
jle 0x4d7113
mov eax, dword [esi + 0x5a68]
mov dword [esi + 0x5aa4], eax
mov eax, dword [0x5552b0]
mov edx, dword [eax + 0x5a6c]
mov dword [eax + 0x5aa8], edx
mov esi, dword [0x5552b0]
mov eax, dword [ebp + 0x4c]
sub eax, dword [esi + 0x5a60]
lea eax, [eax + eax*4]
jmp 0x4d7164
cmp eax, 2
jne 0x4d7170
cmp dword [ebp + 0x4c], edi
jle 0x4d7170
mov eax, dword [esi + 0x5a68]
mov dword [esi + 0x5aa4], eax
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5a6c]
mov dword [eax + 0x5aa8], ecx
mov esi, dword [0x5552b0]
mov edx, dword [ebp + 0x4c]
sub edx, dword [esi + 0x5a60]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [0x529878]
call fcn.0050ef70
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4d7342
mov ecx, dword [esi + 0x5a80]
cmp ecx, 0xffffffff
je 0x4d7342
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
mov ecx, dword [esi + 0x5d0]
lea eax, [eax + eax*2]
lea ebx, [ecx + eax*4]
mov eax, dword [ecx + eax*4 + 0x48]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*4]
mov ecx, eax
shl edx, 5
shl ecx, 5
add edx, eax
add ecx, eax
lea esi, [esi + edx*4 + 0x698]
lea edx, [eax + ecx*2]
mov eax, dword [edx*4 + 0x552dc4]
push eax
call fcn.00403210
mov edx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x48]
add esp, 4
mov dword [edx + 0x348], ecx
cmp dword [edx + ecx*4 + 0x428], 0
jne 0x4d723e
cmp dword [ebp + 0x4c], edi
jle 0x4d7342
mov eax, dword [0x5552b0]
mov ecx, dword [eax + 0x5a7c]
mov dword [eax + 0x5aa4], ecx
mov eax, dword [0x5552b0]
mov edx, dword [eax + 0x5a80]
mov dword [eax + 0x5aa8], edx
mov ecx, dword [0x5552b0]
mov eax, dword [ebp + 0x4c]
sub eax, dword [ecx + 0x5a74]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x529878]
call fcn.0050ef70
pop edi
pop esi
pop ebp
mov dword [esp + 0xc], eax
pop ebx
add esp, 0x118
ret
mov ecx, dword [0x546aa4]
test ecx, ecx
je 0x4d7342
mov ecx, dword [ebx]
push ecx
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push edx
lea ecx, [esp + 0x3c]
push str._s__s__is_considering_a_surprise_attack_against_his_ally__s__s__in__s
push ecx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x1c
cmp eax, 9
jl 0x4d7309
xor edx, edx
mov dword [0x563ad0], edx
mov edi, dword [edx*4 + 0x563aac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x563ad0]
inc edx
cmp edx, 8
mov dword [0x563ad0], edx
jl 0x4d727f
mov edi, 0x549b78
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x563ad0]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [eax*4 + 0x563aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4d7332
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret