Function at 0x10004350
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1000458f
cmp dword [esp + 0x24], 0
je 0x1000458f
cmp dword [esp + 0x2c], 0
je 0x1000458f
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
add esi, esi
add esi, esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x18], esi
neg ecx
or ecx, eax
push ecx
call fcn.100047da
mov ebp, eax
mov eax, edi
add esp, 4
mov dword [esp + 0x14], ebp
lea ecx, [eax + 2]
jmp 0x100043b0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x100043b0
sub eax, ecx
sar eax, 1
xor ecx, ecx
lea eax, [eax*4 + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100047da
mov edi, eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x24], edi
neg ecx
or ecx, eax
push ecx
call fcn.100047da
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ebx, eax
mov eax, ecx
lea edx, [eax + 2]
add esp, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10004420
sub eax, dword [esp + 0x2c]
xor edx, edx
sar eax, 1
mov word [edi + eax*8], dx
mov edx, edi
mov eax, ecx
sub edx, ecx
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004440
push edi
call sym.pph.dll_EncryptString
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp], 0
je 0x1000455f
jmp 0x10004488
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edx, ebx
mov eax, ebp
sub edx, ebp
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004490
push 0x3d
push ebx
call dword [sym.imp.MSVCR90.dll_wcsrchr]
xor edx, edx
push ebx
mov word [eax], dx
lea ebp, [eax + 2]
call dword [sym.imp.MSVCR90.dll__wcsrev]
push ebx
call sym.pph.dll_DecryptString
mov eax, ebx
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100044c5
sub eax, edx
sar eax, 1
add dword [esp + 0x10], eax
lea edi, [eax + eax]
push edi
push ebx
push esi
call sub.MSVCR90.dll_memcpy
mov ax, word [0x10006218]
add esi, edi
push ebp
mov word [esi], ax
call sym.pph.dll_DecryptString
mov eax, ebp
add esp, 0x10
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10004500
sub eax, ecx
sar eax, 1
mov edi, eax
lea ebx, [edi + edi]
push ebx
add esi, 2
push ebp
push esi
call sub.MSVCR90.dll_memcpy
mov cx, word [0x10006188]
mov edx, dword [esp + 0x1c]
add esi, ebx
mov word [esi], cx
mov ecx, dword [esp + 0x20]
lea eax, [edx + edi + 2]
push 0
push ecx
mov dword [esp + 0x24], eax
add esi, 2
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add eax, 2
add esp, 0x14
cmp word [eax], 0
mov dword [esp + 0x14], eax
jne 0x10004480
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dx, word [0x10006188]
push eax
mov word [esi], dx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push 0
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x18
ret
xor eax, eax
pop edi
add esp, 0x18
ret