Function at 0x40210d
Capabilities:
Print debug messages

Disassembly:
jmp 0x461a10
sub esp, 0x134
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esi + 0x8fc], 1
jne 0x461bf2
mov eax, dword [esi + 0x70c]
lea ecx, [esi + 0x70c]
call dword [eax + 0x10]
test eax, eax
jne 0x461a63
mov dword [0x54b098], 2
jmp 0x461ae3
mov edx, dword [esi + 0x788]
lea ecx, [esi + 0x788]
call dword [edx + 0x10]
test eax, eax
jne 0x461a82
mov dword [0x54b098], 3
jmp 0x461ae3
mov eax, dword [esi + 0x804]
lea ecx, [esi + 0x804]
call dword [eax + 0x10]
test eax, eax
jne 0x461aa1
mov dword [0x54b098], 4
jmp 0x461ae3
mov edx, dword [esi + 0x880]
lea ecx, [esi + 0x880]
call dword [edx + 0x10]
test eax, eax
jne 0x461ac0
mov dword [0x54b098], 5
jmp 0x461ae3
mov eax, dword [0x54c1e0]
test eax, eax
je 0x461ae3
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x148]
push eax
push ecx
mov ecx, 0x54a798
call fcn.00402892
mov edi, dword [0x552b84]
xor edx, edx
test edi, edi
jle 0x461b1e
mov eax, dword [0x5469ac]
mov eax, dword [eax + 0x24]
lea ecx, [eax + eax*4]
shl ecx, 5
lea eax, [ecx + esi + 0x12c]
mov ecx, dword [eax]
test ecx, ecx
je 0x461b16
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x461b16
cmp ecx, 5
jne 0x461b35
inc edx
add eax, 0x14
cmp edx, edi
jl 0x461b04
mov ecx, 0x54c598
call fcn.00403a99
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov ecx, 0x54c598
call fcn.00401b2c
mov eax, dword [0x552b84]
xor edi, edi
test eax, eax
jle 0x461ff5
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ebp, [esi + 0x928]
mov ecx, dword [ebp]
cmp ecx, 0x50
jge 0x461b7e
mov edx, dword [0x5469ac]
mov eax, dword [edx + 0x24]
lea eax, [edi + eax*8 + 0xf]
lea edx, [eax + eax*4]
cmp dword [esi + edx*4], 0
je 0x461bd4
inc ecx
mov dword [ebp], ecx
jmp 0x461bd4
mov eax, dword [0x5469ac]
mov ecx, dword [eax + 0x24]
lea eax, [edi + ecx*8]
lea edx, [eax + eax*4 + 0x4b]
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x130], 0
mov edx, dword [esi + edx*4]
jne 0x461bd4
cmp edx, 5
je 0x461bd4
push edi
push ecx
push edx
call fcn.00401b0e
add esp, 0xc
sub eax, 2
je 0x461bc3
push 3
push edi
mov ecx, esi
call fcn.00403b11
push str.Proposal_Denied_n
jmp 0x461bd2
push 2
push edi
mov ecx, esi
call fcn.00403b11
push str.Proposal_Confirmed_n
call ebx
mov eax, dword [0x552b84]
inc edi
add ebp, 4
cmp edi, eax
jl 0x461b5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov eax, dword [0x5537f0]
xor ecx, ecx
cmp eax, ecx
jne 0x461c0b
mov edx, dword [0x5469ac]
mov ebx, dword [edx + 0x21c]
jmp 0x461c13
mov eax, dword [0x5469ac]
mov ebx, dword [eax + 0x24]
mov eax, dword [0x552b84]
xor ebp, ebp
cmp eax, ecx
jle 0x461fee
mov eax, 0x552dc4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x428
mov edx, dword [eax + 8]
test edx, edx
je 0x461fbd
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x461fbd
lea eax, [ebp + ebx*8]
lea edx, [eax + eax*4]
mov eax, dword [esi + edx*4 + 0x130]
cmp eax, 1
lea edi, [esi + edx*4 + 0x130]
jne 0x461fae
mov eax, dword [esi + 0x904]
mov edx, dword [esi + 0x908]
add eax, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
add eax, 0x14
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x910]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x914]
mov edx, dword [esi + 0x920]
add eax, ecx
mov ecx, dword [esi + 0x918]
mov dword [esp + 0x34], eax
add eax, 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x54c1a0
mov dword [esp + 0x44], edx
call fcn.00401cf8
test eax, eax
je 0x461e5a
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x18]
mov dword [edi], 2
mov edi, dword [esp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [0x5552b0]
shl ecx, 5
add ecx, ebx
push 4
push ebx
push ebp
lea ecx, [eax + ecx*4 + 0x698]
lea eax, [edx + eax + 0x698]
lea edx, [ebp + ebx*8 + 0xf]
mov dword [ecx + 0x348], ebp
lea edx, [edx + edx*4]
lea edx, [esi + edx*4]
mov esi, dword [edx]
mov dword [edi + ecx], esi
mov edi, dword [ecx + 0x348]
mov esi, 2
mov dword [ecx + edi*4 + 0x408], esi
mov dword [eax + 0x348], ebx
mov ecx, dword [edx]
mov dword [eax + ebx*4 + 0x428], ecx
mov edx, dword [eax + 0x348]
mov dword [eax + edx*4 + 0x408], esi
mov ecx, dword [eax + 0x348]
lea eax, [eax + ecx*4 + 0x488]
inc dword [eax]
call fcn.00401429
mov eax, dword [0x546aa4]
add esp, 0xc
test eax, eax
je 0x461faa
mov edx, ebx
shl edx, 5
add edx, ebx
lea esi, [ebx + edx*2]
shl esi, 2
mov eax, dword [esi + 0x552dc4]
push eax
call fcn.00403210
mov ecx, dword [esp + 0x14]
mov edi, eax
mov edx, dword [ecx]
push edx
call fcn.00403210
push eax
mov eax, dword [esp + 0x1c]
add eax, 0xffffff24
lea ecx, [esi + 0x552ce8]
push eax
push edi
push ecx
lea edx, [esp + 0x5c]
push str._s__s__has_accepted__s__s_s_proposal
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x20
cmp eax, 9
jl 0x461f7c
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 0x461dcd
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 + 0x44]
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 0x461fa5
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x54c1a0
call fcn.00401cf8
test eax, eax
je 0x461fae
push 3
push ebx
push ebp
mov dword [edi], 3
call fcn.00401429
mov eax, dword [0x546aa4]
add esp, 0xc
test eax, eax
je 0x461fae
mov edx, ebx
shl edx, 5
add edx, ebx
lea esi, [ebx + edx*2]
shl esi, 2
mov eax, dword [esi + 0x552dc4]
push eax
call fcn.00403210
mov ecx, dword [esp + 0x14]
mov edi, eax
mov edx, dword [ecx]
push edx
call fcn.00403210
push eax
mov eax, dword [esp + 0x1c]
add eax, 0xffffff24
lea ecx, [esi + 0x552ce8]
push eax
push edi
push ecx
lea edx, [esp + 0x5c]
push str._s__s__has_declined__s__s_s_proposal
push edx
call fcn.0050fb85
mov eax, dword [0x563acc]
add esp, 0x20
cmp eax, 9
jl 0x461f7c
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 0x461ef2
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 + 0x44]
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 0x461fa5
mov edx, dword [eax*4 + 0x563aa8]
inc eax
mov dword [0x563acc], eax
lea edi, [esp + 0x44]
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]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add ecx, 0x36
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add edx, 0x784
inc ebp
mov dword [esp + 0x18], edx
mov edx, dword [0x552b84]
add edi, 4
add eax, 0x10c
cmp ebp, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jl 0x461c3b
mov ecx, esi
call fcn.004039d6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8