Function at 0x10039dfa
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003a176
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x1003a160
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x6c], 0x23d2
cmp dword [ebp - 0x6c], 0x1094
jge 0x10039f78
mov dword [ebp - 0x10], 2
jmp 0x10039ea2
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x75
jge 0x10039ebc
push dword [ebp - 0x10]
call fcn.10039ca3
pop ecx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x114f1f48], al
jmp 0x10039e9b
xor eax, eax
inc eax
je 0x10039f78
push 0x114f1e38
push 0x11108d14
push 0x10a37dec
push 0x1000e16c
call fcn.10058fc2
add esp, 0x10
cmp dword [0x10a37dec], 0
jne 0x10039eef
jmp 0x10039f78
mov byte [0x10663db7], 0
push 0x75
push 0
push 0x11108910
call fcn.1002a7c8
add esp, 0xc
push 0
call fcn.10039d5d
pop ecx
movzx eax, byte [0x10663db7]
test eax, eax
jne 0x10039f27
push 0x1000e178
call fcn.10059662
pop ecx
jmp 0x10039f73
and dword [ebp - 8], 0
jmp 0x10039f34
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [0x11108d14]
sub eax, dword [0x10a37dec]
inc eax
cmp dword [ebp - 8], eax
jge 0x10039f6b
cmp dword [ebp - 8], 0
jle 0x10039f53
push 0x2c
call fcn.10059fe9
pop ecx
mov eax, dword [ebp - 8]
push dword [eax*4 + 0x11108b40]
push 0x1000ddc0
call fcn.10057526
pop ecx
pop ecx
jmp 0x10039f2d
push 0xa
call fcn.10059fe9
pop ecx
jmp 0x10039ebc
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x9c]
mov dword [eax], 7
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
cmp dword [eax], 0x5fa2ef70
jge 0x10039fc3
mov dword [ebp - 0x44], 1
jmp 0x10039fc7
and dword [ebp - 0x44], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
jg 0x10039fe1
mov dword [ebp - 0x34], 1
jmp 0x10039fe5
and dword [ebp - 0x34], 0
imul esi, dword [ebp - 0x34], 0xffff
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
cmp esi, dword [eax]
jge 0x1003a003
mov dword [ebp - 0x24], 1
jmp 0x1003a007
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jg 0x1003a021
mov dword [ebp - 0x18], 1
jmp 0x1003a025
and dword [ebp - 0x18], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jge 0x1003a03f
mov dword [ebp - 0x2c], 1
jmp 0x1003a043
and dword [ebp - 0x2c], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
jge 0x1003a05d
mov dword [ebp - 0x3c], 1
jmp 0x1003a061
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0x1b0cadfb
jl 0x1003a073
mov dword [ebp - 0x1c], 1
jmp 0x1003a077
and dword [ebp - 0x1c], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax]
jg 0x1003a091
mov dword [ebp - 0x20], 1
jmp 0x1003a095
and dword [ebp - 0x20], 0
push 2
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jne 0x1003a0b3
push 0xfffffffffffffffc
pop eax
test eax, eax
jne 0x1003a0b3
and dword [ebp - 0x28], 0
jmp 0x1003a0ba
mov dword [ebp - 0x28], 1
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jl 0x1003a0d4
mov eax, dword [ebp - 0x84]
cmp dword [eax], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
push 3
mov ecx, dword [ebp - 4]
call fcn.10010f08
mov eax, dword [eax]
sub eax, 5
cmp eax, 0x97f0
jg 0x1003a0fd
mov dword [ebp - 0x30], 1
jmp 0x1003a101
and dword [ebp - 0x30], 0
mov esi, dword [ebp - 0x30]
sub esi, 6
push 0
mov ecx, dword [ebp - 4]
call fcn.10010f08
cmp esi, dword [eax]
jl 0x1003a11e
mov dword [ebp - 0x38], 1
jmp 0x1003a122
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x77b6
je 0x1003a134
mov dword [ebp - 0x40], 1
jmp 0x1003a138
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0x883e
je 0x1003a14a
mov dword [ebp - 0x14], 1
jmp 0x1003a14e
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x1003a171
push 0
push 0xca9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1003a24f
lea eax, [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x1003a1f7
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1003a1d5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jge 0x1003a1f5
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x88]
call fcn.10010f08
mov dword [eax], 0x4cacff8e
jmp 0x1003a1ca
jmp 0x1003a24f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
cmp dword [eax], 0
jne 0x1003a240
xor eax, eax
inc eax
jne 0x1003a240
mov dword [ebp - 0x48], 1
jmp 0x1003a244
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret