Function at 0x408be0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd434
call fcn.00457ef0
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4a7b10], 0
push ebx
push esi
push edi
jne 0x408c08
call fcn.00408950
call fcn.00409b60
test eax, eax
jne 0x408c31
push 0x481e64
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
cmp dword [0x5227d4], 1
je 0x408c5a
push 0x481e98
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
cmp dword [0x4a7b10], 0
jne 0x408c7b
cmp dword [0x4a7898], 1
jne 0x408c71
call fcn.00407b30
call fcn.00406500
call fcn.00408690
call fcn.00405370
test eax, eax
jne 0x408ca4
push 0x481ed4
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
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.00453200
add esp, 0xc
lea ecx, [ebp - 0xd428]
call fcn.00409bd0
test eax, eax
jne 0x408cf1
push 0x481f08
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
call fcn.00410620
test eax, eax
jne 0x408d1a
push 0x481f3c
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
call fcn.00409e10
mov dword [0x522664], edx
mov ecx, 0x404850
xor edx, edx
mov dword [0x522660], eax
call fcn.0040a100
test eax, eax
jne 0x408d5a
push 0x481f6c
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, 0x404fd0
call fcn.0040a100
test eax, eax
jne 0x408d8a
push 0x481fa4
call fcn.00401630
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
xor eax, eax
xor ebx, ebx
push 0x481fd8
mov dword [ebp - 0xd42c], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edi, edi
lea esi, [ebp - 0xd428]
movzx edx, word [esi]
test dx, dx
je 0x408def
inc ebx
mov dword [ebp - 0xd430], ebx
lea ebx, [esi + 2]
mov ecx, ebx
call fcn.00405070
test eax, eax
jne 0x408de9
movzx eax, word [esi]
inc dword [ebp - 0xd42c]
push eax
push ebx
push 0x481ff8
call fcn.004015a0
add esp, 0xc
cmp dword [0x5227fc], 0
je 0x408f17
mov ebx, dword [ebp - 0xd430]
inc edi
add esi, 0x12
cmp edi, 0xbb8
jb 0x408da7
push 0xc7
lea eax, [ebp - 0x137]
mov byte [ebp - 0x138], 0
push 0
push eax
call fcn.00453200
mov eax, dword [ebp - 0xd42c]
add esp, 0xc
push eax
push ebx
lea eax, [ebp - 0x138]
push 0x48206c
push eax
call fcn.004582cf
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x63
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x70], 0
push 0
push eax
call fcn.00453200
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 0x408e60
mov eax, dword [str.GlobaliGameDX_02_]
mov edx, 0x727624
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x4820a4]
mov dword [ecx + 4], eax
mov eax, dword [0x4820a8]
mov dword [ecx + 8], eax
mov eax, dword [0x4820ac]
mov dword [ecx + 0xc], eax
mov ax, word [0x4820b0]
mov word [ecx + 0x10], ax
mov al, byte [0x4820b2]
mov byte [ecx + 0x12], al
mov al, byte [edx]
inc edx
test al, al
jne 0x408ea2
lea edi, [ebp - 0x70]
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408eb0
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, 0x4a7880
call fcn.00405770
test eax, eax
je 0x408c1e
cmp dword [0x4a7b10], 0
jne 0x408eee
mov ecx, 1
call fcn.004070a0
mov ecx, dword [0x4a7b14]
test ecx, ecx
je 0x408f01
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.004524fc
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 0x482038
call fcn.00401630
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret