Function at 0x406080
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd434
call fcn.00456340
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a688c], 0
push ebx
push esi
push edi
jne 0x4060a8
call fcn.00405df0
call fcn.00407070
test eax, eax
jne 0x4060d1
push 0x480aec
call fcn.00402630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
cmp dword [0x4a9594], 1
je 0x4060fa
push 0x480b20
call fcn.00402630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
cmp dword [0x6ae3b0], 0
jle 0x406124
cmp dword [0x4a688c], 0
jne 0x406124
cmp dword [0x4a6884], 1
jne 0x40611a
call fcn.00404fd0
call fcn.004039a0
call fcn.00405b30
call fcn.004027b0
test eax, eax
jne 0x40614d
push 0x480b5c
call fcn.00402630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xd2ee
push eax
mov word [ebp - 0xd428], ax
lea eax, [ebp - 0xd426]
push eax
call fcn.00451650
add esp, 0xc
lea ecx, [ebp - 0xd428]
call fcn.004070e0
test eax, eax
jne 0x40619a
push 0x480b90
call fcn.00402630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
call fcn.0040cbf0
test eax, eax
jne 0x4061c3
push 0x480bc4
call fcn.00402630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ebx, ebx
push 0x480bf4
mov dword [ebp - 0xd42c], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x480bf4
call fcn.0045738c
add esp, 4
lea esi, [ebp - 0xd428]
xor edi, edi
lea ecx, [ecx]
movzx edx, word [esi]
test dx, dx
je 0x406238
inc ebx
mov dword [ebp - 0xd430], ebx
lea ebx, [esi + 2]
mov ecx, ebx
call fcn.0040e2e0
test eax, eax
jne 0x406232
movzx eax, word [esi]
inc dword [ebp - 0xd42c]
push eax
push ebx
push 0x480c18
call fcn.00402590
add esp, 0xc
cmp dword [0x4a95bc], 0
je 0x406367
mov ebx, dword [ebp - 0xd430]
inc edi
add esi, 0x12
cmp edi, 0xbb8
jb 0x4061f0
push 0xc7
lea eax, [ebp - 0x137]
mov byte [ebp - 0x138], 0
push 0
push eax
call fcn.00451650
mov eax, dword [ebp - 0xd42c]
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x138]
push 0x480c8c
push eax
call fcn.0045671f
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x138]
push eax
call fcn.0045738c
add esp, 4
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x6f]
push 0x63
push 0
push eax
call fcn.00451650
lea ecx, [ebp - 0x70]
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4062b1
mov eax, dword [str.GlobaliGameDX_2_]
mov edx, 0x6ae3e4
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x480cc4]
mov dword [ecx + 4], eax
mov eax, dword [0x480cc8]
mov dword [ecx + 8], eax
mov eax, dword [0x480ccc]
mov dword [ecx + 0xc], eax
mov ax, word [0x480cd0]
mov word [ecx + 0x10], ax
jmp 0x4062f0
mov al, byte [edx]
inc edx
test al, al
jne 0x4062f0
lea edi, [ebp - 0x70]
sub edx, esi
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406300
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, 0x4a6880
call fcn.00402bb0
test eax, eax
je 0x4060be
cmp dword [0x4a688c], 0
jne 0x40633e
mov ecx, 1
call fcn.00404540
mov ecx, dword [0x4a6ae8]
test ecx, ecx
je 0x406351
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.0045094b
mov esp, ebp
pop ebp
ret
lea ecx, [edi + edi*8]
add ecx, ecx
movzx eax, word [ebp + ecx - 0xd428]
push eax
lea eax, [ebp - 0xd426]
add eax, ecx
push eax
push 0x480c58
call fcn.00402630
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret