Function at 0x477240
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d4
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5e8f7c]
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x630], 0
push ebx
mov ebx, 0x42800648
push esi
mov esi, edx
mov dword [ebp - 0x654], esi
push edi
mov edi, ecx
mov dword [ebp - 0x650], edi
test eax, eax
je 0x4772aa
push 0x41f2d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4772aa
call eax
mov dword [ebp - 0x630], eax
cmp dword [0x5ed290], 0
mov eax, 0x52800648
push 0
push esi
push 0xfb01
push edi
push 0
push 0
push 0
push 0
push 0x54001d68
push 0
push 0x41f7d4
cmovne ebx, eax
push 0
mov dword [ebp - 0x658], ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0x14
push 0x41e
push eax
mov dword [0x5e9b6c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5ed3e0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
je 0x477369
push 0
lea eax, [ebp - 0x210]
push eax
push 0x104
push 0
push 0x5ed3e0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x477341
push 0x5ed3e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2010
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call ebx
mov edi, eax
test edi, edi
je 0x477369
mov dword [ebp - 0x628], 1
jmp 0x477393
push 0x2000
push 0
push 0
push 0
push 0x64
push esi
call ebx
push 0x2000
push 0
push 0
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x670]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, 0x501
cmp word [0x5f02ec], ax
jae 0x4773c2
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
mov ecx, edi
call fcn.00473140
mov eax, 0x51eb851f
imul dword [ebp - 0x66c]
push 0
push 0
sar edx, 3
push 0x21
push dword [ebp - 0x668]
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push edi
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
push 0x430
push dword [0x5e9b6c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5efe40
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4774f2
push 0
lea eax, [ebp - 0x210]
push eax
push 0x104
push 0
push 0x5efe40
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
jne 0x47745e
push 0x5efe40
lea eax, [ebp - 0x210]
push eax
call edi
push 0x2010
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call ebx
mov dword [ebp - 0x62c], eax
test eax, eax
je 0x4774f8
lea ecx, [ebp - 0x670]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, 0x51eb851f
imul dword [ebp - 0x66c]
push 0
push 0
sar edx, 3
push 0x21
push dword [ebp - 0x668]
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
push dword [ebp - 0x62c]
mov esi, eax
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push dword [ebp - 0x62c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
push 0
push 0x434
push dword [0x5e9b6c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathW]
jmp 0x4774f8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5ed080
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4775bb
push 0
lea eax, [ebp - 0x210]
push eax
push 0x104
push 0
push 0x5ed080
push 0
call esi
test eax, eax
jne 0x477536
push 0x5ed080
lea eax, [ebp - 0x210]
push eax
call edi
push 0x2010
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4775bb
lea eax, [ebp - 0x670]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, 0x51eb851f
imul dword [ebp - 0x66c]
push 0
push 0
sar edx, 3
push 0x21
push dword [ebp - 0x668]
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push edi
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call ebx
push esi
push 0
push 0x436
push dword [0x5e9b6c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x477828
cmp dword [ebp - 0x628], 0
jne 0x477822
mov eax, dword [0x5e97ec]
cmp eax, 1
jne 0x4776d8
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp - 0x624]
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x648]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x477822
cmp word [ebp - 0x636], 0x20
jne 0x477822
mov ecx, dword [ebp - 0x640]
xor esi, esi
mov edi, dword [ebp - 0x634]
test ecx, ecx
jle 0x4777b8
mov eax, dword [ebp - 0x644]
nop dword [eax]
xor edx, edx
test eax, eax
jle 0x4776c4
mov ecx, dword [ebp - 0x628]
movzx eax, cl
imul ebx, eax, 0x9f
movzx eax, cx
shr eax, 8
imul eax, eax, 0x9f
mov dword [ebp - 0x62c], eax
mov eax, ecx
shr eax, 0x10
lea ecx, [edi + 1]
movzx eax, al
imul eax, eax, 0x9f
mov dword [ebp - 0x64c], eax
movzx eax, byte [ecx + 1]
lea ecx, [ecx + 4]
inc edx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ebx
shr eax, 8
mov byte [ecx - 3], al
movzx eax, byte [ecx - 4]
lea eax, [eax + eax*2]
shl eax, 5
add eax, dword [ebp - 0x62c]
shr eax, 8
mov byte [ecx - 4], al
movzx eax, byte [ecx - 5]
lea eax, [eax + eax*2]
shl eax, 5
add eax, dword [ebp - 0x64c]
shr eax, 8
mov byte [ecx - 5], al
mov eax, dword [ebp - 0x644]
cmp edx, eax
jl 0x477672
mov ecx, dword [ebp - 0x640]
add edi, dword [ebp - 0x63c]
inc esi
cmp esi, ecx
jl 0x477630
jmp 0x4777b2
cmp eax, 2
je 0x4776f7
mov ecx, 0x501
cmp word [0x5f02ec], cx
jae 0x477822
test eax, eax
jne 0x477822
lea eax, [ebp - 0x648]
push eax
push 0x18
push dword [ebp - 0x624]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x477822
cmp word [ebp - 0x636], 0x20
jne 0x477822
mov ecx, dword [ebp - 0x640]
xor edx, edx
mov ebx, dword [ebp - 0x634]
mov dword [ebp - 0x628], edx
test ecx, ecx
jle 0x4777b2
mov eax, dword [ebp - 0x644]
xor edi, edi
test eax, eax
jle 0x4777a1
lea esi, [ebx + 2]
nop dword [eax]
movzx eax, byte [esi - 1]
lea esi, [esi + 4]
inc edi
lea ecx, [eax + eax*4]
movzx eax, byte [esi - 6]
add ecx, eax
movzx eax, byte [esi - 4]
imul eax, eax, 0x26
mov edx, ecx
shl edx, 4
sub edx, ecx
add edx, eax
shr edx, 7
movzx eax, dl
shl eax, 7
add eax, 0x6730
shr eax, 8
mov byte [esi - 6], al
mov byte [esi - 5], al
mov byte [esi - 4], al
mov eax, dword [ebp - 0x644]
cmp edi, eax
jl 0x477750
mov ecx, dword [ebp - 0x640]
mov edx, dword [ebp - 0x628]
add ebx, dword [ebp - 0x63c]
inc edx
mov dword [ebp - 0x628], edx
cmp edx, ecx
jl 0x477740
mov ebx, dword [ebp - 0x624]
mov eax, 0x501
cmp word [0x5f02ec], ax
jae 0x4777d7
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, eax
mov ecx, ebx
call fcn.00473140
mov eax, 0x51eb851f
imul dword [ebp - 0x66c]
push 0
push 0
sar edx, 3
push 0x21
push dword [ebp - 0x668]
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push esi
push 0
push 0x436
push dword [0x5e9b6c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x477835
push eax
call ebx
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
push 0x5e8d50
shr eax, 1
push eax
push ebx
push 0x41f7f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov edi, 1
xor esi, esi
cmp byte [esi + 0x5bf801], 1
je 0x4778db
push edi
lea eax, [ebp - 0x410]
push 0x41f814
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x610]
lea edx, [ebp - 0x410]
mov ecx, ebx
inc edi
push 0x100
push eax
push 0x41bcc8
call fcn.00472e40
add esp, 0xc
test eax, eax
je 0x4778d4
lea eax, [ebp - 0x610]
push eax
push 0
push 0x44d
push dword [0x5e9b6c]
call dword [sym.imp.USER32.dll_SendMessageW]
or byte [esi + 0x5bf801], 0x50
mov dword [esi + 0x5bf808], eax
jmp 0x4778db
and byte [esi + 0x5bf801], 0xaf
add esi, 0x14
cmp esi, 0x280
jb 0x477866
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x455
push dword [0x5e9b6c]
call ebx
or eax, 8
push eax
push 0
push 0x454
push dword [0x5e9b6c]
call ebx
push 0x5bf7f8
push 0x18
push 0x444
push dword [0x5e9b6c]
call ebx
sub esp, 0xc
call fcn.00474020
add esp, 0xc
test eax, eax
jne 0x47794e
push 0x5bf7f8
push 0x18
push 0x444
push dword [0x5e9b6c]
call ebx
lea eax, [ebp - 0x620]
push eax
push 0
push 0x41d
push dword [0x5e9b6c]
call ebx
mov eax, dword [ebp - 0x650]
push 0
push dword [ebp - 0x654]
mov dword [0x5eca44], eax
push 0xfb02
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x658]
push 0
push 0x41f820
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [ebp - 0x67c]
mov dword [0x5e9a04], eax
push ecx
push 0
push 0x404
push eax
mov dword [ebp - 0x67c], 0xc
mov dword [ebp - 0x678], 0
mov dword [ebp - 0x674], 0
call ebx
mov esi, dword [ebp - 0x630]
mov ecx, 6
test esi, esi
mov dword [ebp - 0x6d0], 0x50
mov eax, 2
mov dword [ebp - 0x6cc], 0x31
cmovne eax, ecx
mov dword [ebp - 0x6a0], 0
mov dword [ebp - 0x6c8], eax
mov eax, dword [0x5e9b6c]
mov dword [ebp - 0x6b0], eax
mov eax, dword [ebp - 0x618]
sub eax, dword [ebp - 0x620]
shl eax, 5
mov dword [ebp - 0x6ac], eax
mov eax, dword [ebp - 0x61c]
add eax, dword [ebp - 0x614]
mov dword [ebp - 0x6a8], eax
lea eax, [ebp - 0x6d0]
push eax
push 0xffffffffffffffff
push 0x40a
push dword [0x5e9a04]
mov dword [ebp - 0x6bc], 0x41f83c
mov dword [ebp - 0x6a4], 0
call ebx
push 4
push 0
push 0
push 0
push 0
push 0
push dword [0x5e9a04]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x620]
push eax
push dword [0x5e9a04]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x614]
xor ecx, ecx
sub eax, dword [ebp - 0x61c]
test esi, esi
mov dword [0x5e95c4], eax
mov eax, 2
pop edi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
pop esi
mov dword [0x5e97e0], eax
pop ebx
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret