Function at 0x421ca0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47e31b
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x63c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x654]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jne 0x421cf5
xor eax, eax
jmp 0x422095
cmp dword [esi + 0xb4], ebx
jne 0x421d08
call fcn.00401bc0
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xb4]
mov edi, dword [eax + 8]
cmp edi, ebx
mov dword [esp + 0x20], edi
jle 0x421cee
push 0x206
lea ecx, [esp + 0x246]
push ebx
push ecx
mov word [esp + 0x24c], bx
call fcn.00461680
lea edx, [esp + 0x24c]
push edx
call fcn.00401100
add esp, 0x10
test eax, eax
je 0x421d81
lea eax, [esp + 0x240]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x421d52
mov ecx, dword [str.cfg.ini]
mov edx, dword [0x483934]
mov dword [eax], ecx
mov ecx, dword [0x483938]
mov dword [eax + 4], edx
mov edx, dword [0x48393c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp edi, ebx
mov dword [esp + 0x18], ebx
jle 0x422090
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x421d9d
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
test ecx, ecx
mov eax, dword [esi + 0xb4]
jl 0x4220bd
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 8]
jge 0x4220bd
mov esi, dword [eax + 4]
mov ebx, dword [esi + ecx]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esi, ecx
test ebx, ebx
mov dword [esp + 0x28], ebx
je 0x421dd4
lea eax, [ebx + 8]
push eax
call edi
mov ebp, dword [esi + 4]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x421de5
lea ecx, [ebp + 8]
push ecx
call edi
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x30], eax
je 0x421df6
add eax, 8
push eax
call edi
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], edx
xor eax, eax
push 0x206
push eax
mov dword [esp + 0x664], eax
mov word [esp + 0x40], ax
lea eax, [esp + 0x42]
push eax
call fcn.00461680
lea ecx, [esp + 0x44]
push ecx
call fcn.004011a0
add esp, 0x10
test eax, eax
je 0x421ed2
test ebx, ebx
je 0x421e5f
mov eax, dword [ebx]
test eax, eax
je 0x421e5f
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, dword [ebx]
push eax
push edx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
test esi, esi
jne 0x421e5b
push 0x8007000e
call fcn.0047ab90
mov eax, esi
jmp 0x421e61
xor eax, eax
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421e63
lea edi, [esp + 0x38]
sub eax, edx
add edi, 0xfffffffe
jmp 0x421e80
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x421e80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x38]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x421ea3
mov ecx, dword [str.Cfg.xml]
mov edx, dword [0x4878b8]
mov dword [eax], ecx
mov ecx, dword [0x4878bc]
mov dword [eax + 4], edx
mov edx, dword [0x4878c0]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push 0x206
lea eax, [esp + 0x44e]
push 0
push eax
mov word [esp + 0x454], 0
call fcn.00461680
add esp, 0xc
test ebx, ebx
je 0x421f22
mov eax, dword [ebx]
test eax, eax
je 0x421f22
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
test esi, esi
jne 0x421f1e
push 0x8007000e
call fcn.0047ab90
mov eax, esi
jmp 0x421f24
xor eax, eax
lea edx, [esp + 0x240]
push edx
push 0x104
lea ecx, [esp + 0x450]
push ecx
push 0x483ca4
push eax
push 0x483974
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x483ca4
lea eax, [esp + 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421f7c
test dx, dx
je 0x421f78
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421f7c
add eax, 4
add ecx, 4
test dx, dx
jne 0x421f56
xor eax, eax
jmp 0x421f81
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x421fb9
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xb4]
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 8]
jge 0x4220bd
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
mov edx, 1
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0xb4]
mov dword [eax + 0x14], edx
jmp 0x422062
test ebp, ebp
je 0x421fea
mov eax, dword [ebp]
test eax, eax
je 0x421fea
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [ebp]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
test esi, esi
jne 0x421fe6
push 0x8007000e
call fcn.0047ab90
mov ecx, esi
jmp 0x421fec
xor ecx, ecx
lea eax, [esp + 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422019
test dx, dx
je 0x422015
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422019
add eax, 4
add ecx, 4
test dx, dx
jne 0x421ff3
xor eax, eax
jmp 0x42201e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x422037
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x78]
lea eax, [esp + 0x38]
push eax
call fcn.0040d180
test eax, eax
jne 0x422062
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xb4]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 8]
jge 0x4220bd
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
mov ecx, 1
mov dword [eax + 0xc], ecx
mov edx, dword [edx + 0xb4]
mov dword [edx + 0x14], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x65c], 0xffffffff
call fcn.00401510
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x10
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x421d95
mov eax, 1
mov ecx, dword [esp + 0x654]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x63c]
xor ecx, esp
call fcn.004611fb
add esp, 0x64c
ret
jmp fcn.00431536