Function at 0x4541cc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4541e5
cmp dword [ebp + 0x14], 0
jne 0x4541ec
xor eax, eax
jmp 0x454704
cmp dword [ebp + 0x18], 0
jne 0x4541f8
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x18], edx
cmp dword [0x4d54b8], 0
je 0x4543e3
test byte [edi + 0x236], 0x22
je 0x4543e3
push 0x4d53a4
push 0x100
lea ecx, [ebp - 0x130]
push ecx
push 0x4bb415
test byte [edi + 0x236], 0x20
je 0x454236
mov eax, dword [ebp + 0x14]
jmp 0x454239
mov eax, dword [ebp + 0x18]
push eax
push 0x4bb43d
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov edx, dword [0x4d9bac]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edx
push ecx
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 8]
push ecx
push eax
lea edx, [ebp - 0x130]
push str._i__i__i__i__i
push edx
call fcn.004a6ca8
add esp, 0x1c
cmp eax, 4
jl 0x45432e
cmp dword [ebp - 8], 0
jl 0x45428a
cmp dword [ebp - 8], 0xb
jl 0x454293
mov ecx, dword [0x4d5398]
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0x239]
cmp eax, dword [ebp - 8]
je 0x4542ba
mov edx, dword [ebp - 8]
lea eax, [edi + 0x13c]
mov dword [edi + 0x140], edx
mov dword [edi + 0x239], edx
push eax
call sym.ollydbg.exe__Defaultbar
pop ecx
cmp dword [ebp - 0xc], 0
jl 0x4542c6
cmp dword [ebp - 0xc], 8
jl 0x4542cf
mov ecx, dword [0x4d5394]
mov dword [ebp - 0xc], ecx
mov ax, word [ebp - 0xc]
mov word [edi + 0x23d], ax
cmp dword [ebp - 0x10], 0
jl 0x4542e6
cmp dword [ebp - 0x10], 5
jl 0x4542ef
mov edx, dword [0x4d9bac]
mov dword [ebp - 0x10], edx
mov cx, word [ebp - 0x10]
mov word [edi + 0x23f], cx
cmp dword [edi + 0x22d], 0xffffffff
je 0x454313
cmp dword [ebp - 0x14], 0
setne al
and eax, 1
mov dword [edi + 0x22d], eax
cmp word [edi + 0x231], 0xffff
je 0x45432e
cmp dword [ebp - 0x18], 0
setne dl
and edx, 1
mov word [edi + 0x231], dx
cmp dword [0x4d54bc], 0
je 0x4543e3
push 0x4d53a4
push 0x100
lea ecx, [ebp - 0x130]
push ecx
push 0x4bb415
test byte [edi + 0x236], 0x20
je 0x45435f
mov eax, dword [ebp + 0x14]
jmp 0x454362
mov eax, dword [ebp + 0x18]
push eax
push str.Columns
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea ebx, [ebp - 0x130]
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [edi + 0x144]
mov dword [ebp - 0x30], edx
jmp 0x4543d8
inc ebx
xor ecx, ecx
mov cl, byte [ebx]
cmp ecx, 0x20
je 0x454385
xor esi, esi
jmp 0x4543a6
mov eax, esi
xor edx, edx
add eax, eax
mov dl, byte [ebx]
lea eax, [eax + eax*4]
add eax, edx
add eax, 0xffffffd0
inc ebx
mov esi, eax
xor ecx, ecx
mov cl, byte [ebx]
push ecx
call fcn.004a7bbc
pop ecx
test eax, eax
jne 0x454393
cmp esi, 3
jl 0x4543e3
cmp esi, 0x8000
jg 0x4543e3
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
xor edx, edx
mov dl, byte [ebx]
cmp edx, 0x2c
jne 0x4543e3
inc ebx
inc dword [ebp - 4]
add dword [ebp - 0x30], 4
mov ecx, dword [edi + 0x13c]
cmp ecx, dword [ebp - 4]
jg 0x454386
cmp dword [ebp + 0xc], 5
jge 0x4543f0
mov dword [ebp + 0xc], 5
cmp dword [ebp + 0x10], 2
jge 0x4543fd
mov dword [ebp + 0x10], 2
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
push 2
call fcn.004a222c
dec eax
xor edx, edx
mov dword [ebp - 0x148], eax
lea eax, [edi + 0x188]
mov dword [ebp - 4], edx
jmp 0x454466
mov edx, dword [edi + 0x13c]
dec edx
cmp edx, dword [ebp - 4]
jne 0x454457
cmp dword [eax], 0x100
jne 0x454457
mov ecx, dword [edi + 0x239]
mov edx, dword [ecx*4 + 0x4d48f4]
add edx, edx
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
add dword [ebp - 0x148], edx
jmp 0x454460
mov ecx, dword [eax - 0x44]
add dword [ebp - 0x148], ecx
inc dword [ebp - 4]
add eax, 4
mov edx, dword [edi + 0x13c]
cmp edx, dword [ebp - 4]
jle 0x454479
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jl 0x454426
mov eax, dword [edi + 0x239]
mov eax, dword [eax*4 + 0x4d4920]
imul dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
cmp word [edi + 0x231], 0
je 0x4544a6
push 3
call fcn.004a222c
add dword [ebp - 0x144], eax
cmp dword [edi + 0x22d], 1
jne 0x4544c5
mov edx, dword [edi + 0x239]
mov ecx, dword [edx*4 + 0x4d4920]
add ecx, 4
add dword [ebp - 0x144], ecx
push 0
push 0x40cf0000
lea eax, [ebp - 0x150]
push eax
call sub.USER32.DLL_AdjustWindowRect
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x140]
sub dword [ebp - 0x148], edx
mov edx, dword [0x4d3b80]
mov ecx, dword [ebp - 0x14c]
sub dword [ebp - 0x144], ecx
push eax
push edx
call sub.USER32.DLL_GetClientRect
mov ecx, 0x80000000
mov ebx, 0x54ef0000
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
test byte [edi + 0x236], 1
jne 0x454528
or ebx, 0x100000
cmp dword [0x4d54b8], 0
je 0x45467f
test byte [edi + 0x236], 2
je 0x45467f
push 0x4d53a4
push 0x100
lea eax, [ebp - 0x130]
push eax
push 0x4bb415
test byte [edi + 0x236], 0x20
je 0x454566
mov edx, dword [ebp + 0x14]
jmp 0x454569
mov edx, dword [ebp + 0x18]
push edx
push str.Placement
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push ecx
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push edx
push ecx
lea eax, [ebp - 0x130]
push str._i__i__i__i__i
push eax
call fcn.004a6ca8
add esp, 0x1c
cmp eax, 5
jne 0x45465c
cmp dword [0x4d54ac], 0
jne 0x454638
push 0x1e
call fcn.004a222c
mov esi, dword [ebp - 0x138]
push 0x20
sub esi, eax
call fcn.004a222c
sub esi, eax
cmp esi, dword [ebp - 0x1c]
jge 0x4545ea
push 0x1e
call fcn.004a222c
mov esi, dword [ebp - 0x138]
push 0x20
sub esi, eax
call fcn.004a222c
sub esi, eax
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], 0
jge 0x4545f5
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0x1f
call fcn.004a222c
mov esi, dword [ebp - 0x134]
push 0x21
sub esi, eax
call fcn.004a222c
sub esi, eax
cmp esi, dword [ebp - 0x20]
jge 0x45462d
push 0x1f
call fcn.004a222c
mov esi, dword [ebp - 0x134]
push 0x21
sub esi, eax
call fcn.004a222c
sub esi, eax
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x20], 0
jge 0x454638
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x150], edx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x144], edx
cmp dword [0x4d54c8], 0
je 0x45467f
cmp dword [ebp - 0x2c], 3
jne 0x454673
or ebx, 0x1000000
jmp 0x45467f
cmp dword [ebp - 0x2c], 2
jne 0x45467f
or ebx, 0x20000000
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0x148]
jge 0x454693
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x144]
jge 0x4546a7
mov dword [ebp - 0x144], eax
push 0
mov edx, dword [0x4d3b78]
push edx
mov ecx, dword [0x4d3b80]
push ecx
mov eax, dword [ebp - 0x144]
push eax
mov edx, dword [ebp - 0x148]
push edx
mov ecx, dword [ebp - 0x14c]
push ecx
mov eax, dword [ebp - 0x150]
push eax
push ebx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
call sub.USER32.DLL_CreateMDIWindowA
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x454702
test byte [edi + 0x236], 1
jne 0x454702
movsx edx, word [edi + 0x231]
push edx
push 0
push eax
call sub.USER32.DLL_ShowScrollBar
mov eax, dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret