Function at 0x413540
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x456c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x473eb8]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x1c0]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0xc]
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edx
call fcn.00411840
mov eax, dword [eax]
mov ecx, dword [0x475498]
mov edx, dword [ecx]
push eax
push str._UM_check_ver__expect:_s
push ecx
mov dword [esp + 0x80], ebx
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
or ebp, 0xffffffff
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x74], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4135d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.00411840
mov eax, dword [eax]
push eax
push str._UM_check_ver__expect:_s
push 0x47549c
mov dword [esp + 0x80], 1
call fcn.0040f2c0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x74], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413620
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi + 0x6c], ebx
je 0x4137cf
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00449143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x70]
push eax
mov eax, dword [0x4754b8]
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
mov dword [esp + 0x84], 2
call fcn.004037b0
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
add esp, 0x10
push edi
push 0x20
lea edx, [esp + 0x50]
push edx
push 0x45ad90
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
ja 0x4136e0
push 0x32e
push str._UM:_d_cant_read_ver
push eax
call dword [ecx + 4]
push 0x32f
push str._UM:_d_cant_read_ver
push 0x47549c
call fcn.0040f2c0
lea eax, [edi - 0x10]
add esp, 0x18
mov dword [esp + 0x74], ebp
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41392a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41392a
lea edx, [esp + 0x48]
push edx
push str._UM_curr_ver__s
push eax
call dword [ecx + 4]
lea eax, [esp + 0x54]
push eax
push str._UM_curr_ver__s
push 0x47549c
call fcn.0040f2c0
add esp, 0x18
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00411440
test eax, eax
jne 0x413769
mov eax, dword [0x475498]
mov edx, dword [eax]
push 0x336
push str._UM:_d_ver_malformat
push eax
call dword [edx + 4]
push 0x337
push str._UM:_d_ver_malformat
push 0x47549c
call fcn.0040f2c0
lea eax, [edi - 0x10]
add esp, 0x18
mov dword [esp + 0x74], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41392a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41392a
mov ecx, dword [esp + 0x1a]
mov eax, 0x8000
test eax, ecx
je 0x4138a7
test dword [esp + 0x3e], eax
je 0x4138a7
mov ax, word [esp + 0x14]
cmp ax, word [esp + 0x38]
jne 0x4138a7
mov cx, word [esp + 0x16]
cmp cx, word [esp + 0x3a]
jne 0x4138a7
mov dx, word [esp + 0x18]
cmp dx, word [esp + 0x3c]
jne 0x4138a7
lea eax, [edi - 0x10]
mov dword [esp + 0x74], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4137cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x475498]
mov ecx, dword [eax]
push str._UM_check_ver_ok
push eax
call dword [ecx + 4]
push str._UM_check_ver_ok
push 0x47549c
call fcn.0040f2c0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x1c0]
mov eax, dword [ecx]
add esp, 0x10
cmp eax, ecx
je 0x413830
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.0044de77
mov eax, dword [esi + 0x1c4]
add esp, 4
dec eax
mov dword [esi + 0x1c4], eax
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jne 0x41384f
lea eax, [esp + 0x28]
mov ecx, eax
mov byte [esp + 0x28], 1
mov dword [esp + 0x24], eax
mov dword [esi], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push ebx
push ebx
push ebx
mov dword [esp + 0x80], 5
call dword [edx + 0x18]
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x4139f4
mov ecx, esi
call fcn.00412b50
test eax, eax
jne 0x4139dd
cmp dword [esi + 0x1c4], ebx
je 0x4139ce
mov ecx, dword [esi + 8]
push ecx
xor eax, eax
xor ecx, ecx
mov edx, 0x406
call fcn.00412600
add esp, 4
jmp 0x4139dd
push ebx
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.0040ae50
test al, al
mov eax, dword [0x475498]
je 0x4138fa
mov ecx, dword [eax]
push 0x33f
push str._UM:_d_curr_ver_not_updated
push eax
call dword [ecx + 4]
push 0x340
push str._UM:_d_curr_ver_not_updated
push 0x47549c
call fcn.0040f2c0
add esp, 0x18
mov ecx, esi
call fcn.00412970
lea ecx, [esp + 0x10]
call fcn.00401390
jmp 0x4139f4
mov edx, dword [eax]
push 0x344
push str._UM:_d_curr_ver_expect_ver
push eax
call dword [edx + 4]
push 0x345
push str._UM:_d_curr_ver_expect_ver
push 0x47549c
call fcn.0040f2c0
add esp, 0x18
lea ecx, [esp + 0x10]
call fcn.00401390
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
jne 0x413949
lea eax, [esp + 0x34]
mov ecx, eax
mov byte [esp + 0x34], 1
mov dword [esp + 0x30], eax
mov dword [esi], ecx
push 0
lea edx, [esp + 0x48]
mov ebx, 3
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x7c], ebx
call fcn.00411840
mov eax, dword [eax]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
push 5
push ebx
mov byte [esp + 0x80], 4
call dword [edx + 0x18]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x74], bl
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x413997
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
je 0x4139f4
mov ecx, esi
mov dword [esi + 0x200], 0xfffffffe
call fcn.00412b50
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
je 0x4139f4
lea ecx, [esp + 0x34]
cmp ecx, eax
jne 0x4139f4
mov edx, dword [esp + 0x2c]
mov dword [edx], 0
jmp 0x4139f4
cmp dword [esi + 0x88], ebx
jne 0x4139dd
mov ecx, esi
call fcn.00412a10
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x4139f4
lea edx, [esp + 0x28]
cmp edx, eax
jne 0x4139f4
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x5c]
pop ebx
call fcn.004375fb
add esp, 0x68
ret