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

Disassembly:
push 0xffffffffffffffff
push 0x4e2388
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 [0x5143cc]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5143cc
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.00412630
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.0040af10
movzx eax, al
cmp eax, ebx
jne 0x40b554
mov edi, dword [0x5143ec]
lea esi, [esp + 0x18]
call fcn.004215d0
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 0x40b374
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x40]
call fcn.00402530
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 0x40b3b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x38]
call fcn.0048acf0
mov ecx, str.Info.ini
mov edx, esi
call fcn.0048b280
mov eax, dword [esp + 0x3c]
mov ebp, 8
cmp dword [esp + 0x50], ebp
jae 0x40b3db
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004bbf01
add esp, 8
cmp eax, 0xffffffff
jne 0x40b406
cmp dword [esp + 0x50], ebp
jb 0x40b6b7
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004b83e9
add esp, 4
jmp 0x40b6b7
mov edx, dword [0x5143cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x5143cc
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 0x40b430
lea edi, [esp + 0x3c]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x40b456
mov ecx, 0x105
lea eax, [esp + 0x28]
call fcn.00401150
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 0x40b47a
xor eax, eax
jmp 0x40b495
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b480
sub eax, edx
sar eax, 1
js 0x40b5e0
cmp eax, dword [esi - 8]
jg 0x40b5e0
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.004ba39b
add esp, 0x18
cmp eax, 4
je 0x40b509
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 0x40b4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x50], ebp
jb 0x40b6b7
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004b83e9
add esp, 4
jmp 0x40b6b7
push 0x4f0444
mov ecx, 0x5158b0
call fcn.00489840
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 0x40b53c
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 0x40b554
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004b83e9
add esp, 4
mov edx, dword [esp + 0x24]
push edx
push 0x4f1bb4
mov edi, 0x5157d8
call fcn.00406130
mov eax, dword [esp + 0x28]
push eax
push 0x4f1bb4
mov edi, 0x5157dc
call fcn.00406130
mov ecx, dword [esp + 0x24]
push ecx
push 0x4f1bb4
mov edi, 0x5157e0
call fcn.00406130
mov edx, dword [esp + 0x34]
push edx
push 0x4f1bb4
mov edi, 0x5157e4
call fcn.00406130
mov eax, dword [0x5157e4]
add esp, 0x20
cmp dword [eax - 0xc], 4
jne 0x40b5ea
mov eax, 2
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.00409ac0
push eax
mov ecx, 0x4f0454
mov dword [esp + 0x30], 1
call fcn.00401570
add esp, 4
test al, al
je 0x40b5ea
mov bl, 1
jmp 0x40b5ec
push 0x80070057
call fcn.00401350
xor bl, bl
test byte [esp + 0x2c], 1
je 0x40b613
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 0x40b613
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b621
mov dword [0x5156c8], 1
mov ecx, dword [0x5157e4]
mov edx, dword [0x5157e0]
mov eax, dword [0x5157dc]
push ecx
mov ecx, dword [0x5157d8]
push edx
push eax
push ecx
push str._s._s._s._s
mov edi, 0x515800
call fcn.00406130
mov edx, dword [0x515800]
add esp, 0x14
push edx
push 0x4f0474
mov ecx, 0x5158b0
call fcn.00489840
mov eax, dword [0x5157e8]
mov ecx, dword [0x5157ec]
mov edx, dword [0x5157e4]
push eax
mov eax, dword [0x5157e0]
push ecx
mov ecx, dword [0x5157dc]
push edx
mov edx, dword [0x5157d8]
push eax
mov eax, dword [0x5157d4]
push ecx
mov ecx, dword [0x5157d0]
push edx
mov edx, dword [0x5157cc]
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, 0x5158b0
call fcn.00489840
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 0x40b6dc
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 0x40b704
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.004b83ee
add esp, 0x50
ret