Function at 0x401c80
Capabilities:
Print debug messages

Disassembly:
jmp 0x477630
push 0xffffffffffffffff
push 0x526a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa98
mov eax, dword [0x5537f8]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x20], ecx
mov ebx, 1
jne 0x477689
mov ecx, dword [0x552b84]
cmp ecx, ebp
jle 0x477b01
mov eax, 0x552ce4
mov dword [eax], 0x3fe
add eax, 0x10c
dec ecx
jne 0x477676
jmp 0x477b01
cmp eax, 2
je 0x477b01
cmp dword [0x5537f0], ebp
jne 0x47782f
lea ecx, [esp + 0x24]
call fcn.00401479
mov eax, dword [0x552b84]
lea ecx, [esp + 0x24]
add eax, 7
mov dword [esp + 0xab0], ebp
push eax
call fcn.0040119f
mov ecx, dword [0x552b84]
xor esi, esi
add ecx, 0xfffffffe
test ecx, ecx
jle 0x4776eb
push 0x3e8
lea ecx, [esp + 0x28]
call fcn.004010f5
mov edx, dword [0x552b84]
inc esi
add edx, 0xfffffffe
cmp esi, edx
jl 0x4776cf
mov esi, 0x3e8
cmp dword [0x553808], ebp
jne 0x477708
cmp esi, 0x3ed
je 0x477712
cmp esi, 0x3ee
je 0x477712
push esi
lea ecx, [esp + 0x28]
call fcn.004010f5
inc esi
cmp esi, 0x3f1
jl 0x4776f0
lea ecx, [esp + 0x24]
call fcn.00401a3c
xor eax, eax
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x552b84]
test eax, eax
jle 0x47781b
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, 0x552de0
lea ecx, [esp + 0x24]
call fcn.00401d7f
cmp eax, 0x3e8
mov dword [esi - 0xfc], eax
jne 0x47777e
call fcn.0050f2e2
cdq
idiv dword [0x552b84]
cmp byte [esp + edx + 0x18], bl
je 0x47775e
cmp edx, edi
je 0x47775e
mov byte [esi], dl
mov byte [esp + edx + 0x18], bl
mov byte [esi + 1], 0
mov ecx, dword [0x550480]
push 0
push edi
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00403350
mov ecx, dword [0x54c4e8]
push eax
lea edx, [esp + 0x40]
push 0
push edx
call fcn.00402211
mov edx, dword [esp + 0x6bc]
xor ecx, ecx
lea eax, [esp + 0x3c]
mov edx, dword [esp + edx*4 + 0x63c]
dec edx
test edx, edx
jle 0x4777d9
mov dl, byte [eax]
add dl, 0x20
mov byte [eax], dl
mov edx, dword [esp + 0x6bc]
inc eax
inc ecx
mov edx, dword [esp + edx*4 + 0x63c]
dec edx
cmp ecx, edx
jl 0x4777bd
mov byte [eax], 0
lea eax, [esp + 0x3c]
lea ecx, [esi - 0xf8]
push eax
push ecx
lea edx, [esp + 0x8bc]
push str.Player__ss_mission_is_:__s_n
push edx
call fcn.0050fb85
add esp, 0x10
lea eax, [esp + 0x8b4]
push eax
call ebp
mov eax, dword [0x552b84]
inc edi
add esi, 0x10c
cmp edi, eax
jl 0x477748
mov dword [esp + 0xab0], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x477afc
lea ecx, [esp + 0x30]
call fcn.00401479
push 0xd
lea ecx, [esp + 0x34]
mov dword [esp + 0xab4], ebx
call fcn.0040119f
mov esi, 0x3f1
push esi
lea ecx, [esp + 0x34]
call fcn.004010f5
inc esi
cmp esi, 0x3fe
jl 0x47784f
lea ecx, [esp + 0x30]
call fcn.00401a3c
mov eax, dword [0x552b84]
mov byte [esp + 0x13], 0xff
cmp eax, ebp
mov byte [esp + 0x11], 0xff
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x10], 0xff
mov dword [esp + 0x14], ebp
jle 0x477aed
mov esi, 0x552de0
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x30]
call fcn.00401d7f
mov dword [esi - 0xfc], eax
add eax, 0xfffffc0f
xor edi, edi
cmp eax, 0xc
ja case.0x4778c0.1013
xor ecx, ecx
mov cl, byte [eax + 0x477b4c]
jmp dword [ecx*4 + 0x477b38]
call fcn.0050f2e2
cdq
idiv dword [0x552b84]
cmp edx, ebp
je case.0x4778c0.1009
movsx eax, byte [esp + 0x13]
cmp edx, eax
je case.0x4778c0.1009
mov byte [esi], dl
mov byte [esp + 0x13], dl
jmp case.0x4778c0.1013
mov esi, dword [0x550480]
mov eax, 0x54d00c
mov cl, byte [esi]
movsx edx, cl
cmp edx, ebp
je 0x47790b
cmp cl, byte [esp + 0x11]
je 0x47790b
cmp dword [eax], 0
je 0x47790b
inc edi
add eax, 0x58
add esi, 0x20
cmp eax, 0x54e08c
jl 0x4778f6
call fcn.0050f2e2
cdq
idiv edi
mov edi, dword [0x550480]
xor ebp, ebp
xor eax, eax
mov esi, 0x54d00c
mov cl, byte [edi]
movsx ebx, cl
cmp ebx, dword [esp + 0x14]
je 0x47794a
cmp cl, byte [esp + 0x11]
je 0x47794a
cmp dword [esi], 0
je 0x47794a
cmp ebp, edx
je 0x47796b
inc ebp
add esi, 0x58
inc eax
add edi, 0x20
cmp esi, 0x54e08c
jl 0x47792f
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, 1
jmp case.0x4778c0.1013
mov esi, dword [esp + 0x18]
mov ecx, dword [0x550480]
mov ebp, dword [esp + 0x14]
mov ebx, 1
mov byte [esi], al
shl eax, 5
add eax, ecx
mov dl, byte [eax]
mov byte [esi + 1], dl
mov al, byte [eax]
mov byte [esp + 0x11], al
jmp case.0x4778c0.1013
cmp byte [esp + 0x12], 0xff
jne 0x4779b3
call fcn.0050f2e2
and eax, 0x80000003
jns 0x4779ad
dec eax
or eax, 0xfffffffc
inc eax
mov byte [esp + 0x12], al
jmp 0x4779cc
call fcn.0050f2e2
cdq
mov ecx, 3
idiv ecx
mov eax, edx
movsx edx, byte [esp + 0x12]
cmp eax, edx
jne 0x4779cc
inc eax
mov cl, byte [eax*2 + 0x53499c]
mov dl, byte [eax*2 + 0x53499d]
mov byte [esi], cl
mov byte [esi + 1], dl
jmp case.0x4778c0.1013
cmp byte [esp + 0x10], 0xff
jne 0x4779fd
call fcn.0050f2e2
cdq
mov ecx, 6
idiv ecx
mov eax, edx
mov byte [esp + 0x10], al
jmp 0x477a1e
call fcn.0050f2e2
and eax, 0x80000003
jns 0x477a0e
dec eax
or eax, 0xfffffffc
inc eax
movsx edx, byte [esp + 0x10]
cmp eax, edx
jne 0x477a18
inc eax
cmp eax, 0xffffffff
jne 0x477a1e
inc eax
mov cl, byte [eax*4 + 0x5349a4]
mov dl, byte [eax*4 + 0x5349a5]
mov byte [esi], cl
mov cl, byte [eax*4 + 0x5349a6]
mov byte [esi + 1], dl
mov dl, byte [eax*4 + 0x5349a7]
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov eax, dword [0x550480]
mov ecx, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.00403350
push eax
lea ecx, [esp + 0x40]
push 0
push ecx
mov ecx, dword [0x54c4e8]
call fcn.00402211
mov edx, dword [esp + 0x6bc]
xor ecx, ecx
lea eax, [esp + 0x3c]
mov edx, dword [esp + edx*4 + 0x63c]
dec edx
test edx, edx
jle 0x477a9f
mov dl, byte [eax]
add dl, 0x20
mov byte [eax], dl
mov edx, dword [esp + 0x6bc]
inc eax
inc ecx
mov edx, dword [esp + edx*4 + 0x63c]
dec edx
cmp ecx, edx
jl 0x477a83
mov byte [eax], 0
lea eax, [esp + 0x3c]
lea ecx, [esi - 0xf8]
push eax
push ecx
lea edx, [esp + 0x6c8]
push str.Player__ss_mission_is_:__s_n
push edx
call fcn.0050fb85
add esp, 0x10
lea eax, [esp + 0x6c0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x552b84]
inc ebp
add esi, 0x10c
cmp ebp, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
jl 0x477899
mov dword [esp + 0xab0], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00401014
mov eax, dword [0x553828]
test eax, eax
je 0x477b1e
cmp dword [0x5537f0], ebx
jne 0x477b19
call fcn.00402757
jmp 0x477b1e
call fcn.0040180c
mov ecx, dword [esp + 0xaa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xaa4
ret