Function at 0x406400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd57c
call fcn.00456fe0
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a888c], 0
push ebx
push esi
push edi
jne 0x406428
call fcn.00406170
call fcn.00407530
test eax, eax
jne 0x406451
push 0x482b2c
call fcn.004027e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0xd570]
xorps xmm0, xmm0
mov word [ebp - 0xd570], ax
movq qword [ebp - 0xd56e], xmm0
mov dword [ebp - 0xd566], eax
mov word [ebp - 0xd562], ax
call fcn.004078a0
test eax, eax
jne 0x4064a1
push 0x482b60
call fcn.004027e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
push 0x1ff
lea eax, [ebp - 0x26f]
mov byte [ebp - 0x270], 0
push 0
push eax
call fcn.00452270
movzx eax, word [ebp - 0xd564]
add esp, 0xc
push eax
movzx eax, word [ebp - 0xd566]
push eax
movzx eax, word [ebp - 0xd568]
push eax
movzx eax, word [ebp - 0xd56a]
push eax
movzx eax, word [ebp - 0xd56e]
push eax
movzx eax, word [ebp - 0xd570]
push eax
lea eax, [ebp - 0x270]
push 0x482b94
push eax
call fcn.004573bf
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x270]
add esp, 0x20
push eax
call esi
lea eax, [ebp - 0x270]
push eax
call fcn.004580ba
add esp, 4
cmp dword [0x4ab604], 1
je 0x406549
push 0x482bcc
call fcn.004027e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
cmp dword [0x6b0430], 0
jle 0x406573
cmp dword [0x4a888c], 0
jne 0x406573
cmp dword [0x4a8884], 1
jne 0x406569
call fcn.00405310
call fcn.00403b70
call fcn.00405e90
call fcn.00402980
test eax, eax
jne 0x40659c
push 0x482c08
call fcn.004027e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xd2ee
push eax
mov word [ebp - 0xd560], ax
lea eax, [ebp - 0xd55e]
push eax
call fcn.00452270
add esp, 0xc
lea ecx, [ebp - 0xd560]
call fcn.00407960
test eax, eax
jne 0x4065e9
push 0x482c3c
call fcn.004027e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
call fcn.0040dff0
test eax, eax
jne 0x406612
push 0x482c70
call fcn.004027e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ebx, ebx
push 0x482ca0
mov dword [ebp - 0xd574], eax
call esi
push 0x482ca0
call fcn.004580ba
add esp, 4
lea esi, [ebp - 0xd560]
xor edi, edi
movzx edx, word [esi]
test dx, dx
je 0x406680
inc ebx
mov dword [ebp - 0xd578], ebx
lea ebx, [esi + 2]
mov ecx, ebx
call fcn.0040f920
test eax, eax
jne 0x40667a
movzx eax, word [esi]
inc dword [ebp - 0xd574]
push eax
push ebx
push 0x482cc0
call fcn.00402740
add esp, 0xc
cmp dword [0x4ab62c], 0
je 0x4067b7
mov ebx, dword [ebp - 0xd578]
inc edi
add esi, 0x12
cmp edi, 0xbb8
jb 0x406638
push 0x1ff
lea eax, [ebp - 0x26f]
mov byte [ebp - 0x270], 0
push 0
push eax
call fcn.00452270
mov eax, dword [ebp - 0xd574]
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x270]
push 0x482d34
push eax
call fcn.004573bf
add esp, 0x10
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x270]
push eax
call fcn.004580ba
add esp, 4
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x6f]
push 0x63
push 0
push eax
call fcn.00452270
lea ecx, [ebp - 0x70]
add esp, 0xc
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406700
mov eax, dword [str.GlobaliGameDX_2_]
mov edx, 0x6b0464
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x482d6c]
mov dword [ecx + 4], eax
mov eax, dword [0x482d70]
mov dword [ecx + 8], eax
mov eax, dword [0x482d74]
mov dword [ecx + 0xc], eax
mov ax, word [0x482d78]
mov word [ecx + 0x10], ax
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x406740
lea edi, [ebp - 0x70]
sub edx, esi
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406750
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.00402d90
test eax, eax
je 0x40643e
cmp dword [0x4a888c], 0
jne 0x40678e
mov ecx, 1
call fcn.00404840
mov ecx, dword [0x4ab490]
test ecx, ecx
je 0x4067a1
push str._STS_DUILIB_CloseLoadWnd
call ecx
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
lea ecx, [edi + edi*8]
add ecx, ecx
movzx eax, word [ebp + ecx - 0xd560]
push eax
lea eax, [ebp - 0xd55e]
add eax, ecx
push eax
push 0x482d00
call fcn.004027e0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00451570
mov esp, ebp
pop ebp
ret