Function at 0x4708e0
Capabilities:
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
push str.ISO_8859_1
push 2
call fcn.00490725
add esp, 8
call fcn.0043f9b0
mov ebx, dword [ebp + 8]
push 0x208
push 0x4da9b8
xor edi, edi
push edi
mov dword [0x4db2d8], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x4da9b8]
mov byte [eax + 0x4dabc0], cl
inc eax
test cl, cl
jne 0x470920
mov eax, 0x4dabc0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470940
sub eax, edx
dec eax
cmp eax, edi
jle 0x470966
mov cl, 0x5c
cmp byte [eax + 0x4dabc0], cl
je 0x47095f
dec eax
cmp eax, edi
jg 0x470950
jmp 0x470966
mov byte [eax + 0x4dabc1], 0
xor eax, eax
jmp 0x470970
mov cl, byte [eax + 0x4dabc0]
mov byte [eax + 0x4dadc8], cl
inc eax
test cl, cl
jne 0x470970
mov eax, 0x4dadc8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x470987
mov ecx, dword [str.include_]
mov edx, dword [0x4bf66c]
mov dword [eax], ecx
mov cl, byte [0x4bf670]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
call fcn.00470000
cmp byte [0x4da959], 1
jne 0x4709e5
push 0x4dabc0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp + 0x10]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4709d0
sub eax, esi
push eax
push edx
mov ecx, 0x4d54bc
call fcn.00403d10
push 0x30
lea edx, [esp + 0x14]
push edi
push edx
call fcn.004953d0
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
add esp, 0xc
push 1
push ebx
mov dword [esp + 0x1c], 3
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], str.bgtgame
mov dword [esp + 0x20], 0x470b90
mov dword [esp + 0x18], 0x30
call esi
push 1
push ebx
mov dword [esp + 0x30], eax
call esi
push 0x7f00
push edi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], 1
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x470a70
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
push edi
push edi
push 0xb6
push 0x17a
push 0x55
push 0x129
push 0x80c70008
push 0x4aeeef
push str.bgtgame
push edi
call esi
push edi
push ebx
push 1
push eax
push 0x14
push 0x49
push 0x73
push 0x118
push 0x48010f00
push str.Continue
push str.BUTTON
push edi
mov dword [0x4da95c], eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
mov dword [0x4da964], eax
call edi
mov ecx, dword [0x4da95c]
push 0
push ebx
push 2
push ecx
push 0x14
push 0x35
push 0x73
push 0xdc
push 0x48010f00
push str.Exit
push str.BUTTON
push 0
call esi
push 0
push eax
mov dword [0x4da960], eax
call edi
mov edx, dword [0x4da95c]
push 0
push ebx
push 3
push edx
push 0x6a
push 0x15c
push 5
push 5
push 0x48a10844
push 0x4aeeef
push str.EDIT
push 0
call esi
push 0x46bd90
push 0xfffffffffffffffc
push eax
mov dword [0x4da968], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x4d74b4], eax
mov eax, dword [0x4da968]
push 0
push eax
call edi
mov ecx, dword [0x4da968]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ecx
call esi
push 0
mov edx, dword [0x4da960]
push edx
call esi
mov eax, dword [0x4da964]
push 0
push eax
call esi
mov ecx, dword [0x4da95c]
push 0
push ecx
call edi
call fcn.004708a0
int3