Function at 0x4da180
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
mov eax, dword [0x703a9c]
cmp eax, 5
ja case.0x4da1b0.1
jmp dword [eax*4 + 0x4da750]
mov eax, dword [str.INTERFACE_800X600]
mov ecx, dword [0x6abc2c]
mov edx, dword [0x6abc30]
mov dword [esp + 0x10], eax
mov eax, dword [0x6abc34]
mov dword [esp + 0x14], ecx
mov cx, word [0x6abc38]
mov word [esp + 0x20], cx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x4da301
mov eax, dword [0x6abc18]
mov edx, dword [str.INTERFACE_1280X1024]
mov ecx, dword [0x6abc1c]
mov dword [esp + 0x14], eax
mov eax, dword [0x6abc24]
mov dword [esp + 0x10], edx
mov edx, dword [0x6abc20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jmp 0x4da2fd
mov ecx, dword [str.INTERFACE_1360X768]
mov edx, dword [0x6abc04]
mov eax, dword [0x6abc08]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x6abc0c]
mov dword [esp + 0x14], edx
mov dx, word [0x6abc10]
mov dword [esp + 0x18], eax
mov al, byte [0x6abc12]
mov dword [esp + 0x1c], ecx
mov word [esp + 0x20], dx
mov byte [esp + 0x22], al
jmp 0x4da301
mov ecx, dword [str.INTERFACE_1920X1200]
mov edx, dword [0x6abbf0]
mov eax, dword [0x6abbf4]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x6abbf8]
mov dword [esp + 0x14], edx
mov edx, dword [0x6abbfc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x4da301
mov eax, dword [str.INTERFACE_1680X1050]
mov ecx, dword [0x6abbdc]
mov edx, dword [0x6abbe0]
mov dword [esp + 0x10], eax
mov eax, dword [0x6abbe4]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x6abbe8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jmp 0x4da301
mov eax, dword [0x6abbc8]
mov ecx, dword [0x6abbcc]
mov edx, dword [str.INTERFACE_1024X768]
mov dword [esp + 0x14], eax
mov ax, word [0x6abbd4]
mov dword [esp + 0x18], ecx
mov cl, byte [0x6abbd6]
mov dword [esp + 0x10], edx
mov edx, dword [0x6abbd0]
mov word [esp + 0x20], ax
mov byte [esp + 0x22], cl
mov dword [esp + 0x1c], edx
mov ebx, dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
push 0x7034e0
push 0x104
lea edx, [esp + 0x120]
push edx
push 0x6a75d5
push str.REVOLVERSLOT_POS_X
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x4da341
lea ecx, [esp + 0x118]
push ecx
call fcn.005b8a6a
add esp, 4
mov dword [ebp + 4], eax
push 0x7034e0
push 0x104
lea edx, [esp + 0x120]
push edx
push 0x6a75d5
push str.REVOLVERSLOT_POS_Y
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x4da37b
lea ecx, [esp + 0x118]
push ecx
call fcn.005b8a6a
add esp, 4
mov dword [ebp + 8], eax
push 0x7034e0
push 0x104
lea edx, [esp + 0x120]
push edx
push 0x6a75d5
push str.REVOLVERADDSLOT_PAGE
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x4da3cb
lea ecx, [esp + 0x118]
push ecx
call fcn.005b8a6a
add esp, 4
xor edi, edi
cmp eax, 3
mov dword [ebp + 0x134], eax
jg 0x4da3c3
cmp eax, edi
jge 0x4da3cd
mov dword [ebp + 0x134], edi
jmp 0x4da3cd
xor edi, edi
push 0x7034e0
push 0x104
lea edx, [esp + 0x120]
push edx
push 0x6a75d5
push str.REVOLVERADDSLOT
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x4da436
mov edi, 0x6aebf8
lea esi, [esp + 0x118]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4da417
mov dword [ebp + 0x13c], 1
jmp 0x4da434
mov edi, 0x6aebf4
lea esi, [esp + 0x118]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4da434
mov dword [ebp + 0x13c], eax
xor edi, edi
push 0x7034e0
push 0x104
lea ecx, [esp + 0x120]
push ecx
push 0x6a75d5
push str.REVOLVERSLOT_CHANGE
lea edx, [esp + 0x24]
push edx
call ebx
test eax, eax
je 0x4da49c
mov edi, str.HORIZONTAL
lea esi, [esp + 0x118]
mov ecx, 0xb
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4da47c
mov byte [ebp + 0x140], al
jmp 0x4da49a
mov edi, str.VERTICAL
lea esi, [esp + 0x118]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4da49a
mov byte [ebp + 0x140], 1
xor edi, edi
mov al, byte [ebp + 0x140]
test al, al
jne 0x4da5b6
cmp dword [ebp + 0x13c], edi
mov dword [ebp + 0xc], 0x9e
mov dword [ebp + 0x10], 0x3a
je 0x4da4de
mov eax, dword [ebp + 0x134]
mov eax, dword [eax*4 + 0x21e6eec]
inc eax
lea ecx, [eax + eax*4]
shl ecx, 3
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], 0x6f
mov eax, dword [ebp + 0x28]
cmp eax, edi
lea esi, [ebp + 0x28]
je 0x4da4f0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da500
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], edi
push 0x40
push pe_nt_image_headers32
push str.Revolver_View1.tga
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 0x38]
cmp eax, edi
lea esi, [ebp + 0x38]
je 0x4da52a
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da53a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push str.RevolverAdd1.tga
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 0x48]
cmp eax, edi
lea esi, [ebp + 0x48]
je 0x4da561
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da571
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push str.RevolverAdd2.tga
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 0x58]
cmp eax, edi
lea esi, [ebp + 0x58]
je 0x4da598
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da5a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push str.RevolverAdd3.tga
jmp 0x4da6c5
cmp al, 1
jne 0x4da6d1
cmp dword [ebp + 0x13c], edi
mov dword [ebp + 0xc], 0x3a
mov dword [ebp + 0x10], 0x9e
je 0x4da5f2
mov edx, dword [ebp + 0x134]
mov dword [ebp + 0xc], 0x6f
mov eax, dword [edx*4 + 0x21e6eec]
inc eax
lea eax, [eax + eax*4]
shl eax, 3
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x28]
cmp eax, edi
lea esi, [ebp + 0x28]
je 0x4da604
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da614
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 4], edi
push pe_nt_image_headers32
push 0x40
push str.Revolver_View2.tga
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 0x38]
cmp eax, edi
lea esi, [ebp + 0x38]
je 0x4da63e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da64e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push str.RevolverAdd5.tga
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 0x48]
cmp eax, edi
lea esi, [ebp + 0x48]
je 0x4da675
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da685
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push str.RevolverAdd6.tga
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 0x58]
cmp eax, edi
lea esi, [ebp + 0x58]
je 0x4da6ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da6bc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push str.RevolverAdd7.tga
mov ecx, esi
push str.data_interface
call fcn.00538940
mov eax, dword [ebp + 0x68]
cmp eax, edi
lea esi, [ebp + 0x68]
je 0x4da6e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4da6f3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi + 4], edi
push 0x40
push 0x40
push 0x6aeb14
push str.data_interface
mov ecx, esi
call fcn.00538940
mov eax, dword [ebp + 4]
cmp eax, edi
jge 0x4da714
mov dword [ebp + 4], edi
jmp 0x4da724
mov ecx, dword [0x6f355c]
sub ecx, dword [ebp + 0xc]
cmp eax, ecx
jle 0x4da724
mov dword [ebp + 4], ecx
mov ecx, dword [ebp + 8]
cmp ecx, edi
jge 0x4da736
mov dword [ebp + 8], edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6f3560]
sub eax, dword [ebp + 0x10]
cmp ecx, eax
jle 0x4da745
mov dword [ebp + 8], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret