Function at 0x438a7b
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2c], edx
mov ebx, eax
mov dword [ebp - 0x14], eax
call fcn.00421895
test eax, eax
je 0x438d1d
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x438aca
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x438c1c
push 0x10000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x438abd
push 0x28
push 8
mov dword [edi], 5
mov dword [edi + 4], 0x475060
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [edi + 8], eax
mov esi, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [edi], ecx
jbe 0x438cfe
push dword [ebp + 8]
mov eax, dword [edi + 8]
push 0x8000
push ebx
push dword [esi*4 + 0x475060]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x438b95
mov esi, eax
xor edi, edi
cmp word [edx], di
je 0x438b8f
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x438b53
sub ecx, dword [ebp - 0x10]
or eax, 0xffffffff
sar ecx, 1
sub eax, ecx
mov ecx, edx
add esi, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x438b72
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea edx, [edx + ecx*2]
add edx, 2
inc dword [ebp - 0xc]
test esi, esi
jne 0x438b46
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov dword [edx + esi*8], eax
shl eax, 2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + esi*8 + 4], eax
test eax, eax
je 0x438abd
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x18], ecx
jbe 0x438cef
movzx eax, word [ebx]
test ax, ax
je 0x438ced
cmp edx, dword [ebp - 0xc]
jae 0x438c19
cmp eax, 0x5c
jne 0x438c2c
mov ecx, dword [ebp - 0x24]
mov edx, ebx
call fcn.00423aa7
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*8 + 4]
mov dword [eax + edx*4], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*8 + 4]
cmp dword [eax + edx*4], ecx
jne 0x438c9f
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 8]
mov ecx, edi
call fcn.00438d5a
xor ecx, ecx
mov esi, ecx
jmp 0x438d06
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x438c31
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + esi*8 + 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*8 + 4]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x438c11
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x14]
jne 0x438c78
sub edx, esi
sar edx, 1
push ebx
inc edx
call fcn.00422ab9
mov esi, eax
test esi, esi
js 0x438d22
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov ecx, ebx
inc edx
mov dword [ebp - 0x10], edx
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x438cab
sub ecx, dword [ebp - 0x28]
or eax, 0xffffffff
sar ecx, 1
sub eax, ecx
mov ecx, ebx
add dword [ebp - 0x18], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x28], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x438ccc
sub ecx, dword [ebp - 0x28]
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
ret
add al, byte [ebx + 0xf00e87d]
xchg ebx, esp
invalid
invalid
invalid
xor ecx, ecx
mov ebx, dword [ebp - 8]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [edi]
jb 0x438b17
mov eax, dword [ebp - 0x2c]
xor esi, esi
inc esi
mov dword [eax], edi
test ebx, ebx
je 0x438d19
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
test esi, 0x10000000
je 0x438d43
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
cmp eax, 0x13d
je 0x438d54
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov esi, eax
jmp 0x438d54
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x438d54
movzx esi, si
push esi
jmp 0x438c13