Function at 0x40b090
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4e24e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5143ac
mov dword [esp + 0x2c], ebx
call edx
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call fcn.004123e0
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.0040acf0
movzx eax, al
cmp eax, ebx
jne 0x40b334
mov edi, dword [0x5143cc]
lea esi, [esp + 0x18]
call fcn.004215f0
mov byte [esp + 0x60], 2
mov edx, dword [eax]
mov eax, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b154
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x40]
call fcn.004024d0
mov byte [esp + 0x60], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x38]
call fcn.0048aee0
mov ecx, str.Info.ini
mov edx, esi
call fcn.0048b3c0
mov eax, dword [esp + 0x3c]
mov ebp, 8
cmp dword [esp + 0x50], ebp
jae 0x40b1bb
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004bbfee
add esp, 8
cmp eax, 0xffffffff
jne 0x40b1e6
cmp dword [esp + 0x50], ebp
jb 0x40b497
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004b84d9
add esp, 4
jmp 0x40b497
mov edx, dword [0x5143ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143ac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0x60], 5
cmp dword [esp + 0x50], ebp
mov edi, dword [esp + 0x3c]
jae 0x40b210
lea edi, [esp + 0x3c]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x40b236
mov ecx, 0x105
lea eax, [esp + 0x28]
call fcn.00401130
mov esi, dword [esp + 0x28]
push edi
push 0x104
push esi
push 0x4ef7d8
push str.PacketVersion
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp esi, ebx
jne 0x40b25a
xor eax, eax
jmp 0x40b275
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b260
sub eax, edx
sar eax, 1
js 0x40b3c0
cmp eax, dword [esi - 8]
jg 0x40b3c0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esi - 0xc], eax
lea edx, [esp + 0x18]
push edx
mov word [esi + eax*2], bx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push str._u._u._u._u
push esi
call fcn.004ba4b2
add esp, 0x18
cmp eax, 4
je 0x40b2e9
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b2cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x50], ebp
jb 0x40b497
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004b84d9
add esp, 4
jmp 0x40b497
push 0x4f0444
mov ecx, 0x515890
call fcn.004899e0
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x60], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b31c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 1
cmp dword [esp + 0x50], ebp
jb 0x40b334
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004b84d9
add esp, 4
mov edx, dword [esp + 0x24]
push edx
push 0x4f1bb4
mov edi, 0x5157b8
call fcn.00406040
mov eax, dword [esp + 0x28]
push eax
push 0x4f1bb4
mov edi, 0x5157bc
call fcn.00406040
mov ecx, dword [esp + 0x24]
push ecx
push 0x4f1bb4
mov edi, 0x5157c0
call fcn.00406040
mov edx, dword [esp + 0x34]
push edx
push 0x4f1bb4
mov edi, 0x5157c4
call fcn.00406040
mov eax, dword [0x5157c4]
add esp, 0x20
cmp dword [eax - 0xc], 4
jne 0x40b3ca
mov eax, 2
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.004098a0
push eax
mov ecx, 0x4f0454
mov dword [esp + 0x30], 1
call fcn.00401550
add esp, 4
test al, al
je 0x40b3ca
mov bl, 1
jmp 0x40b3cc
push 0x80070057
call fcn.00401340
xor bl, bl
test byte [esp + 0x2c], 1
je 0x40b3f3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b401
mov dword [0x5156a8], 1
mov ecx, dword [0x5157c4]
mov edx, dword [0x5157c0]
mov eax, dword [0x5157bc]
push ecx
mov ecx, dword [0x5157b8]
push edx
push eax
push ecx
push str._s._s._s._s
mov edi, 0x5157e0
call fcn.00406040
mov edx, dword [0x5157e0]
add esp, 0x14
push edx
push 0x4f0474
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [0x5157c8]
mov ecx, dword [0x5157cc]
mov edx, dword [0x5157c4]
push eax
mov eax, dword [0x5157c0]
push ecx
mov ecx, dword [0x5157bc]
push edx
mov edx, dword [0x5157b8]
push eax
mov eax, dword [0x5157b4]
push ecx
mov ecx, dword [0x5157b0]
push edx
mov edx, dword [0x5157ac]
push eax
push ecx
push edx
push str.iid:_ws_tid1:_ws_tid2:_ws_tod1:_ws_tod2:_ws_tod3:_ws_tod4:_ws_productid:_ws_versiontypes:_ws
mov ecx, 0x515890
call fcn.004899e0
add esp, 0x30
mov ebx, 1
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b84de
add esp, 0x50
ret