Function at 0x40ff80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x452630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [0x46dec0]
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.0040d480
mov eax, dword [eax]
mov ecx, dword [0x46f470]
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 0x410010
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.0040d480
mov eax, dword [eax]
push eax
push str._UM_check_ver__expect:_s
push 0x46f474
mov dword [esp + 0x80], 1
call fcn.0040ac70
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 0x410060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esi + 0x6c], ebx
je 0x41020f
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00444b67
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 [0x46f490]
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
mov dword [esp + 0x84], 2
call fcn.00402400
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 0x454da4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov eax, dword [0x46f470]
mov ecx, dword [eax]
ja 0x410120
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 0x46f474
call fcn.0040ac70
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 0x41036a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41036a
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 0x46f474
call fcn.0040ac70
add esp, 0x18
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040d080
test eax, eax
jne 0x4101a9
mov eax, dword [0x46f470]
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 0x46f474
call fcn.0040ac70
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 0x41036a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41036a
mov ecx, dword [esp + 0x1a]
mov eax, 0x8000
test eax, ecx
je 0x4102e7
test dword [esp + 0x3e], eax
je 0x4102e7
mov ax, word [esp + 0x14]
cmp ax, word [esp + 0x38]
jne 0x4102e7
mov cx, word [esp + 0x16]
cmp cx, word [esp + 0x3a]
jne 0x4102e7
mov dx, word [esp + 0x18]
cmp dx, word [esp + 0x3c]
jne 0x4102e7
lea eax, [edi - 0x10]
mov dword [esp + 0x74], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x41020f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x46f470]
mov ecx, dword [eax]
push str._UM_check_ver_ok
push eax
call dword [ecx + 4]
push str._UM_check_ver_ok
push 0x46f474
call fcn.0040ac70
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 0x410270
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.0044989b
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 0x41028f
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 0x410434
mov ecx, esi
call fcn.0040f590
test eax, eax
jne 0x41041d
cmp dword [esi + 0x1c4], ebx
je 0x41040e
mov ecx, dword [esi + 8]
push ecx
xor eax, eax
xor ecx, ecx
mov edx, 0x406
call fcn.0040f040
add esp, 4
jmp 0x41041d
push ebx
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.004063d0
test al, al
mov eax, dword [0x46f470]
je 0x41033a
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 0x46f474
call fcn.0040ac70
add esp, 0x18
mov ecx, esi
call fcn.0040f3b0
lea ecx, [esp + 0x10]
call fcn.00401290
jmp 0x410434
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 0x46f474
call fcn.0040ac70
add esp, 0x18
lea ecx, [esp + 0x10]
call fcn.00401290
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
jne 0x410389
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.0040d480
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 0x4103d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
je 0x410434
mov ecx, esi
mov dword [esi + 0x200], 0xfffffffe
call fcn.0040f590
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
je 0x410434
lea ecx, [esp + 0x34]
cmp ecx, eax
jne 0x410434
mov edx, dword [esp + 0x2c]
mov dword [edx], 0
jmp 0x410434
cmp dword [esi + 0x88], ebx
jne 0x41041d
mov ecx, esi
call fcn.0040f450
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x410434
lea edx, [esp + 0x28]
cmp edx, eax
jne 0x410434
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.00432fde
add esp, 0x68
ret