Function at 0x4b8780
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x50f939
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], ebp
call fcn.004b21f0
lea eax, [esp + 0x14]
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [esp + 0x334], ebx
mov dword [ebp], 0x515eb4
mov dword [ebp + 0x60], 0x515eb0
mov dword [ebp + 0x240], 0x515eac
mov dword [ebp + 0x420], 0x515ea8
mov dword [ebp + 0x430], 0x515ea4
mov dword [ebp + 0x440], 0x515ea0
mov dword [ebp + 0x450], 0x515e9c
mov dword [ebp + 0x460], 0x515e98
mov dword [ebp + 0x878], ebx
mov dword [ebp + 0x874], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4b89c5
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x4b89c5
push edi
mov byte [eax + 1], bl
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DicomLib.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x11c]
mov ecx, edx
push eax
and ecx, 3
push 0x258
push str.Timeout
rep movsb byte es:[edi], byte [esi]
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
lea ecx, [ebp + 0x530]
call fcn.004bbba0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DCMDict.HLB
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DCMDict.HL
or ecx, 0xffffffff
push 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x32c], 1
pop edi
je 0x4b896d
push ebx
push 1
mov ecx, eax
call fcn.004c2400
mov esi, eax
jmp 0x4b896f
xor esi, esi
lea eax, [esp + 0x21c]
mov ecx, esi
push eax
mov byte [esp + 0x32c], bl
call fcn.004c2ab0
test eax, eax
je 0x4b8995
push 1
push esi
mov ecx, ebp
call fcn.004b2710
jmp 0x4b89c5
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004c2490
test eax, eax
je 0x4b89b1
push 1
push esi
mov ecx, ebp
call fcn.004b2710
jmp 0x4b89c5
cmp esi, ebx
je 0x4b89c5
mov ecx, esi
call fcn.004c2430
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x320]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret