Function at 0x432b80
Capabilities:
Enumerate gui resources
Read .ini file
Set current directory

Disassembly:
sub esp, 0x228
mov eax, dword [0x4e90d4]
cmp eax, 2
mov dword [esp], 0
push ebx
push esi
push edi
push ebp
jl 0x432c23
mov eax, dword [0x4e2fdc]
lea ecx, [esp + 0x38]
add eax, 0x3c
push eax
push pe_nt_image_headers32
push ecx
push str.Rainbow
push str.GameWindowClassName
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x38]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x32c
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4e2fdc]
lea ecx, [esp + 0x38]
add eax, 0x3c
push eax
push pe_nt_image_headers32
push ecx
push str.Demo
push str.GameWindowTitle
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x38]
jmp 0x432c56
mov edi, str.Rainbow
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x32c
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Demo
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x3ac
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push pe_nt_image_headers32
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x3c]
mov ecx, dword [0x4e2fdc]
push eax
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push 0xbbc
mov edx, dword [ecx + 0x46c]
push edx
call ebx
test eax, eax
je 0x432cd4
lea edi, [esp + 0x38]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x32c
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x38]
push pe_nt_image_headers32
push eax
mov ecx, dword [0x4e2fdc]
push 0xbbd
mov edx, dword [ecx + 0x46c]
push edx
call ebx
test eax, eax
je 0x432d23
lea edi, [esp + 0x38]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x3ac
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_EnumWindows]
push eax
push 0x432af0
call ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x432d47
push 0
call fcn.004bece0
add esp, 4
mov eax, dword [0x4e90d4]
cmp eax, 2
jl 0x432f96
mov eax, dword [0x4e90d8]
mov ecx, str.lobby
mov eax, dword [eax + 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x432d82
or dl, dl
je 0x432d7e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x432d82
add eax, 2
add ecx, 2
or dl, dl
jne 0x432d62
xor eax, eax
jmp 0x432d87
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432f96
push 0x5c
mov eax, dword [0x4e90d8]
mov ecx, dword [eax + 4]
push ecx
call fcn.004bf700
add esp, 8
test eax, eax
mov eax, dword [0x4e90d8]
jne 0x432e91
mov edi, dword [eax]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004bd170
add esp, 4
mov ebp, eax
mov eax, dword [0x4e90d8]
mov ecx, 0xffffffff
mov edi, dword [eax]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x5c
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
call fcn.004bf700
add esp, 8
mov ecx, 0xffffffff
mov byte [eax], 0
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x3c
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4e19ac
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x3c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4e90d8]
mov ecx, 0xffffffff
mov edi, dword [eax + 4]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, dword [0x4e2fdc]
add edi, 0x3c
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x432f09
mov edi, dword [eax + 4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004bd170
add esp, 4
mov ebp, eax
mov eax, dword [0x4e90d8]
mov ecx, 0xffffffff
mov edi, dword [eax + 4]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x5c
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.004bf700
add esp, 8
mov byte [eax], 0
mov ecx, dword [0x4e90d8]
sub eax, eax
mov edi, dword [ecx + 4]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x3c
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4e2fdc]
lea ecx, [esp + 0xb8]
add eax, 0x3c
push eax
push pe_nt_image_headers32
push ecx
push 0x4df418
push str.WorkingDirectory
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4330a0
test ebp, ebp
je 0x432f4e
push ebp
call fcn.004bd160
add esp, 4
lea edi, [esp + 0xb8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004bd170
lea edi, [esp + 0xbc]
add esp, 4
mov ebp, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4330a0
mov eax, dword [0x4e90d8]
mov ecx, 0xffffffff
mov edi, dword [eax]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.004bd170
add esp, 4
mov ebp, eax
mov eax, dword [0x4e90d8]
mov ecx, 0xffffffff
mov edi, dword [eax]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x5c
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
call fcn.004bf700
add esp, 8
mov ecx, 0xffffffff
mov byte [eax], 0
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [0x4e2fdc]
add edi, 0x3c
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4e19ac
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [0x4e2fdc]
mov ecx, 0xffffffff
add edi, 0x3c
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.default.ini
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, dword [0x4e2fdc]
add edi, 0x3c
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x4df950
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x4e2fdc]
add eax, 0x3c
push eax
call fcn.004bd1c0
add esp, 8
test eax, eax
je 0x4330a7
push eax
call fcn.004bd0c0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call fcn.004bd160
add esp, 4
push 0x4df418
push 0
call fcn.004bee20
add esp, 8
mov eax, dword [0x4e2fdc]
mov ecx, eax
mov ebp, dword [eax]
call dword [ebp + 4]
test eax, eax
jne 0x4330d9
push 0
call fcn.004bece0
add esp, 4
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00427aa0
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, 1
je 0x43313f
cmp ecx, 2
je 0x43313f
lea eax, [esp + 0x38]
push pe_nt_image_headers32
push eax
mov ecx, dword [0x4e2fdc]
push 0xbb8
mov edx, dword [ecx + 0x46c]
push edx
call ebx
test eax, eax
je 0x433135
push 0x10
mov eax, dword [0x4e2fdc]
add eax, 0x3ac
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004bece0
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, 0x500
jae 0x433190
lea eax, [esp + 0x38]
push pe_nt_image_headers32
push eax
mov ecx, dword [0x4e2fdc]
push 0xbb9
mov edx, dword [ecx + 0x46c]
push edx
call ebx
test eax, eax
je 0x433186
push 0x10
mov eax, dword [0x4e2fdc]
add eax, 0x3ac
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004bece0
add esp, 4
mov eax, dword [esp + 0x248]
mov esi, dword [esp + 0x23c]
push eax
push esi
call fcn.004332e0
add esp, 8
test eax, eax
je 0x4332c6
lea eax, [esp + 0x138]
mov ecx, dword [esp + 0x244]
push eax
mov edx, dword [0x4e1c10]
mov byte [esp + 0x13c], 0
push ecx
push esi
push edx
mov ecx, dword [0x4e2fdc]
call fcn.00465120
test eax, eax
jne 0x43322f
mov eax, dword [0x4e1c10]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x4e2fdc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4331ff
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov al, byte [esp + 0x138]
test al, al
je 0x433227
push 0x10
mov eax, dword [0x4e2fdc]
add eax, 0x3ac
lea ecx, [esp + 0x13c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [0x4e1c18], 1
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [esp + 0x1c]
push 1
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x43328c
mov ebp, 0x12
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4332d8
lea eax, [esp + 0x1c]
push eax
call esi
lea eax, [esp + 0x1c]
push eax
call edi
lea eax, [esp + 0x1c]
push 1
push 0
push 0
push 0
push eax
call ebx
test eax, eax
jne 0x433263
mov eax, dword [0x4e1c14]
test eax, eax
je 0x43324b
mov eax, dword [0x4e2fdc]
mov ecx, eax
mov ebp, dword [eax]
call dword [ebp + 0x34]
test eax, eax
jne 0x43324b
mov eax, dword [0x4e2fdc]
mov ecx, eax
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov ecx, dword [0x4e1c10]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x228
ret 0x10
mov eax, dword [esp + 0x24]
push eax
jmp 0x4332c0