Function at 0x406460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd5e4
call fcn.00457150
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a888c], 0
push ebx
push esi
push edi
jne 0x406488
call fcn.004061d0
call fcn.004075e0
test eax, eax
jne 0x4064b1
push 0x482b34
call fcn.004027a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0xd5d8]
xorps xmm0, xmm0
mov word [ebp - 0xd5d8], ax
movq qword [ebp - 0xd5d6], xmm0
mov dword [ebp - 0xd5ce], eax
mov word [ebp - 0xd5ca], ax
call fcn.00407a10
test eax, eax
jne 0x406501
push 0x482b68
call fcn.004027a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
push 0x1ff
lea eax, [ebp - 0x2d7]
mov byte [ebp - 0x2d8], 0
push 0
push eax
call fcn.004523e0
movzx eax, word [ebp - 0xd5cc]
add esp, 0xc
push eax
movzx eax, word [ebp - 0xd5ce]
push eax
movzx eax, word [ebp - 0xd5d0]
push eax
movzx eax, word [ebp - 0xd5d2]
push eax
movzx eax, word [ebp - 0xd5d6]
push eax
movzx eax, word [ebp - 0xd5d8]
push eax
lea eax, [ebp - 0x2d8]
push 0x482b9c
push eax
call fcn.0045752f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x2d8]
add esp, 0x20
push eax
call esi
lea eax, [ebp - 0x2d8]
push eax
call fcn.00458229
add esp, 4
cmp dword [0x4ab864], 1
je 0x4065a9
push 0x482bd4
call fcn.004027a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
cmp dword [0x6b0690], 0
jle 0x4065d3
cmp dword [0x4a888c], 0
jne 0x4065d3
cmp dword [0x4a8884], 1
jne 0x4065c9
call fcn.00405370
call fcn.00403b50
call fcn.00405ef0
push 0x63
lea eax, [ebp - 0xd7]
mov byte [ebp - 0xd8], 0
push 0
push eax
call fcn.004523e0
add esp, 0xc
lea eax, [ebp - 0xd8]
push dword [0x6b06a4]
push dword [0x6b06a0]
push str.GlobaliGameDX_3__lld
push eax
call fcn.0045752f
add esp, 0x10
lea edx, [ebp - 0xd8]
mov ecx, 0x4a8b4c
call fcn.00402d50
test eax, eax
je 0x40682b
call fcn.00402940
test eax, eax
jne 0x40664e
push 0x482c28
call fcn.004027a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xd2ee
push eax
mov word [ebp - 0xd5c8], ax
lea eax, [ebp - 0xd5c6]
push eax
call fcn.004523e0
add esp, 0xc
lea ecx, [ebp - 0xd5c8]
call fcn.00407ad0
test eax, eax
jne 0x40669b
push 0x482c5c
call fcn.004027a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
call fcn.0040e340
test eax, eax
jne 0x4066c4
push 0x482c90
call fcn.004027a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ebx, ebx
push 0x482cc0
mov dword [ebp - 0xd5dc], eax
call esi
push 0x482cc0
call fcn.00458229
add esp, 4
lea esi, [ebp - 0xd5c8]
xor edi, edi
lea ebx, [ebx]
movzx edx, word [esi]
test dx, dx
je 0x406738
inc ebx
mov dword [ebp - 0xd5e0], ebx
lea ebx, [esi + 2]
mov ecx, ebx
call fcn.0040fc80
test eax, eax
jne 0x406732
movzx eax, word [esi]
inc dword [ebp - 0xd5dc]
push eax
push ebx
push 0x482ce0
call fcn.00402700
add esp, 0xc
cmp dword [0x4ab88c], 0
je 0x406866
mov ebx, dword [ebp - 0xd5e0]
inc edi
add esi, 0x12
cmp edi, 0xbb8
jb 0x4066f0
push 0x1ff
lea eax, [ebp - 0x2d7]
mov byte [ebp - 0x2d8], 0
push 0
push eax
call fcn.004523e0
mov eax, dword [ebp - 0xd5dc]
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x2d8]
push 0x482d54
push eax
call fcn.0045752f
add esp, 0x10
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x2d8]
push eax
call fcn.00458229
add esp, 4
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x6f]
push 0x63
push 0
push eax
call fcn.004523e0
lea ecx, [ebp - 0x70]
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4067b1
mov eax, dword [str.GlobaliGameDX_2_]
mov edx, 0x6b06c4
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x482d8c]
mov dword [ecx + 4], eax
mov eax, dword [0x482d90]
mov dword [ecx + 8], eax
mov eax, dword [0x482d94]
mov dword [ecx + 0xc], eax
mov ax, word [0x482d98]
mov word [ecx + 0x10], ax
jmp 0x4067f0
mov al, byte [edx]
inc edx
test al, al
jne 0x4067f0
lea edi, [ebp - 0x70]
sub edx, esi
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406800
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4a8880
call fcn.00402d50
test eax, eax
je 0x40649e
cmp dword [0x4a888c], 0
jne 0x40683e
mov ecx, 1
call fcn.00404880
mov eax, dword [0x4a8b54]
test eax, eax
je 0x406850
push str._STS_DUILIB_CloseLoadWnd
call eax
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
lea ecx, [edi + edi*8]
add ecx, ecx
movzx eax, word [ebp + ecx - 0xd5c8]
push eax
lea eax, [ebp - 0xd5c6]
add eax, ecx
push eax
push 0x482d20
call fcn.004027a0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret