Function at 0x456b90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4a50
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x54c1b4]
xor eax, esp
mov dword [esp + 0x6d0], eax
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
xor eax, esp
push eax
lea eax, [esp + 0x6e8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edi, 7
xor eax, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
mov dword [esp + 0x6f0], ebx
xor ecx, ecx
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
mov eax, dword [ebp + 8]
lea esi, [ebx + 1]
mov byte [esp + 0x6f0], 1
cmp eax, ebx
je 0x45720c
jle 0x457270
cmp eax, 2
jg 0x457270
push 0x208
lea eax, [esp + 0x2c2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x2c8], dx
call fcn.004c3610
lea esi, [esp + 0xb4]
call fcn.00456a80
push eax
mov eax, str.dataconfig.ini
lea ecx, [esp + 0x9c]
mov byte [esp + 0x700], 2
call fcn.004070c0
add esp, 0x10
mov esi, 8
mov byte [esp + 0x6f0], 4
cmp dword [esp + 0xbc], esi
jb 0x456c97
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004bb4d8
add esp, 4
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], dx
cmp dword [esp + 0xa0], esi
jae 0x456cc6
lea eax, [esp + 0x8c]
push eax
push 0x104
lea eax, [esp + 0x2c4]
push eax
push 0x5118c4
push str.channel
push 0x511624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [esp + 0x2bc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x456d02
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2c0]
push edx
lea ecx, [esp + 0x24]
call fcn.00408810
mov ebx, 5
mov byte [esp + 0x6f0], bl
mov eax, dword [esp + 0x2c]
push str.test
lea edi, [ebx - 1]
lea ecx, [esp + 0x20]
call fcn.00406090
test eax, eax
je 0x456d64
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], 0
jae 0x456d5f
lea eax, [esp + 0x1c]
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x2c], 0
jne 0x456d81
call fcn.00444350
push 0xffffffffffffffff
push 0
add eax, 0x1c
push eax
lea ecx, [esp + 0x28]
call fcn.004082e0
mov eax, dword [esp + 0x2c]
push 0x512d88
mov edi, 2
lea ecx, [esp + 0x20]
call fcn.00406090
test eax, eax
jne 0x456e9e
push 0x511968
lea ecx, [esp + 0xe4]
call fcn.00408170
lea edx, [esp + 0xe0]
lea ecx, [esp + 0x268]
mov byte [esp + 0x6f0], 6
call fcn.00403940
push 0
mov ecx, eax
lea esi, [esp + 0x170]
mov byte [esp + 0x6f4], 7
call fcn.0040a7a0
add esp, 4
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x6f0], 8
call fcn.00407a10
lea ecx, [esp + 0x16c]
call fcn.00407bb0
lea ecx, [esp + 0x268]
call fcn.00407bb0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x6f0], bl
call fcn.00401ea0
push 0x511968
lea ecx, [esp + 0xc8]
call fcn.00408170
lea edx, [esp + 0xc4]
lea ecx, [esp + 0x284]
mov byte [esp + 0x6f0], 9
call fcn.00403940
mov ecx, eax
lea esi, [esp + 0x134]
mov byte [esp + 0x6f0], 0xa
call fcn.0040a950
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x6f0], 0xb
call fcn.00407a10
lea ecx, [esp + 0x134]
call fcn.00407bb0
lea ecx, [esp + 0x284]
call fcn.00407bb0
lea ecx, [esp + 0xc4]
jmp 0x4570f7
mov eax, dword [esp + 0x2c]
push 0x512d90
lea ecx, [esp + 0x20]
call fcn.00406090
test eax, eax
je 0x456ee6
lea edx, [esp + 0x1a4]
push edx
lea ecx, [esp + 0x20]
call fcn.0045ba50
add esp, 4
mov byte [esp + 0x6f0], 0xc
mov dword [esp + 0x18], 1
call fcn.0045bb20
mov byte [esp + 0x17], 0
test al, al
je 0x456eeb
mov byte [esp + 0x17], 1
mov dword [esp + 0x6f0], ebx
test byte [esp + 0x18], 1
je 0x456f05
lea ecx, [esp + 0x1a4]
call fcn.00401ea0
cmp byte [esp + 0x17], 0
je 0x457007
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x20]
call fcn.0045ba50
mov edx, eax
lea ecx, [esp + 0x1e0]
mov byte [esp + 0x6f4], 0xd
call fcn.00403940
push 0
mov ecx, eax
lea esi, [esp + 0x254]
mov byte [esp + 0x6f8], 0xe
call fcn.0040a7a0
add esp, 8
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x6f0], 0xf
call fcn.00407a10
lea ecx, [esp + 0x24c]
call fcn.00407bb0
lea ecx, [esp + 0x1dc]
call fcn.00407bb0
lea ecx, [esp + 0x2a0]
mov byte [esp + 0x6f0], bl
call fcn.00401ea0
lea ecx, [esp + 0x188]
push ecx
lea ecx, [esp + 0x20]
call fcn.0045ba50
add esp, 4
mov edx, eax
lea ecx, [esp + 0x150]
mov byte [esp + 0x6f0], 0x10
call fcn.00403940
mov ecx, eax
lea esi, [esp + 0x214]
mov byte [esp + 0x6f0], 0x11
call fcn.0040a950
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x6f0], 0x12
call fcn.00407a10
lea ecx, [esp + 0x214]
call fcn.00407bb0
lea ecx, [esp + 0x150]
call fcn.00407bb0
lea ecx, [esp + 0x188]
jmp 0x4570f7
push str.WEMediaSetup
lea ecx, [esp + 0x11c]
call fcn.00408170
lea edx, [esp + 0x118]
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x6f0], 0x13
call fcn.00403940
push 0
mov ecx, eax
lea esi, [esp + 0x1c4]
mov byte [esp + 0x6f4], 0x14
call fcn.0040a7a0
add esp, 4
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x6f0], 0x15
call fcn.00407a10
lea ecx, [esp + 0x1c0]
call fcn.00407bb0
lea ecx, [esp + 0x1f8]
call fcn.00407bb0
lea ecx, [esp + 0x118]
mov byte [esp + 0x6f0], bl
call fcn.00401ea0
push str.WEMediaSetup
lea ecx, [esp + 0x3c]
call fcn.00408170
lea edx, [esp + 0x38]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f0], 0x16
call fcn.00403940
mov ecx, eax
lea esi, [esp + 0x230]
mov byte [esp + 0x6f0], 0x17
call fcn.0040a950
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x6f0], 0x18
call fcn.00407a10
lea ecx, [esp + 0x230]
call fcn.00407bb0
lea ecx, [esp + 0xfc]
call fcn.00407bb0
lea ecx, [esp + 0x38]
mov byte [esp + 0x6f0], bl
call fcn.00401ea0
cmp dword [esp + 0x64], 0
jne 0x457120
call fcn.00444350
push 0xffffffffffffffff
push 0
add eax, 0x1c
push eax
lea ecx, [esp + 0x60]
call fcn.004082e0
cmp dword [esp + 0x80], 0
jne 0x4571ba
xor edx, edx
push 0x208
push edx
lea eax, [esp + 0x4d6]
push eax
mov word [esp + 0x4d8], dx
call fcn.004c3610
mov eax, dword [esp + 0x98]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0xa0], esi
jae 0x45716a
lea eax, [esp + 0x8c]
push eax
push 0x104
lea ecx, [esp + 0x4d4]
push ecx
push 0x5118c4
push str.subchannel
push 0x511624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x4cc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457197
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4d0]
push edx
lea ecx, [esp + 0x78]
call fcn.00408810
jmp 0x4571bf
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x4571d2
mov eax, dword [esp + 0x1c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov byte [esp + 0x6f0], 1
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
cmp dword [esp + 0xa0], esi
jb 0x457270
mov edx, dword [esp + 0x8c]
push edx
call fcn.004bb4d8
add esp, 4
jmp 0x457270
test byte [0x550018], 1
jne 0x45722d
or dword [0x550018], esi
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
push 0xffffffffffffffff
push ebx
push 0x54ff14
lea ecx, [esp + 0x60]
call fcn.004082e0
test byte [0x550018], 1
jne 0x45725f
or dword [0x550018], esi
call fcn.004443f0
push 0x4f70a0
call fcn.004bd58e
add esp, 4
push 0xffffffffffffffff
push ebx
push 0x54ff30
lea ecx, [esp + 0x7c]
call fcn.004082e0
mov eax, dword [esp + 0x64]
push 0x513408
mov edi, 0xc
lea ecx, [esp + 0x58]
call fcn.00406090
test eax, eax
jne 0x4572c3
lea ecx, [esp + 0x38]
call fcn.00403630
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x6f0], 0x19
call fcn.00407a10
mov byte [esp + 0x6f0], 1
cmp dword [esp + 0x4c], 8
jb 0x4572c3
mov eax, dword [esp + 0x38]
push eax
call fcn.004bb4d8
add esp, 4
push 0x5118c8
mov ebx, 1
lea edi, [esp + 0x58]
call fcn.004100a0
cmp eax, 0xffffffff
je 0x45737a
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.00407470
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x6f0], 0x1a
call fcn.00407a10
mov byte [esp + 0x6f0], bl
cmp dword [esp + 0x4c], 8
jb 0x45731c
mov edx, dword [esp + 0x38]
push edx
call fcn.004bb4d8
add esp, 4
push 1
push 0
push 0x5118c8
lea ecx, [esp + 0x60]
call fcn.004139b0
cmp eax, 0xffffffff
je 0x45737a
mov ecx, dword [esp + 0x64]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x60]
call fcn.00407470
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x6f0], 0x1b
call fcn.00407a10
mov byte [esp + 0x6f0], 1
cmp dword [esp + 0x4c], 8
jb 0x45737a
mov eax, dword [esp + 0x38]
push eax
call fcn.004bb4d8
add esp, 4
cmp dword [esp + 0x64], 0
jne 0x457391
push 0xc
push 0x513408
lea ecx, [esp + 0x5c]
call fcn.00408810
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x58]
call fcn.0045ba50
add esp, 4
mov edi, eax
mov esi, 0x54d674
mov byte [esp + 0x6f0], 0x1c
call fcn.004015f0
mov byte [esp + 0x6f0], 1
cmp dword [esp + 0x4c], 0x10
jb 0x4573d2
mov edx, dword [esp + 0x38]
push edx
call fcn.004bb4d8
add esp, 4
mov eax, dword [esp + 0x80]
push 0x513408
mov edi, 0xc
lea ecx, [esp + 0x74]
call fcn.00406090
test eax, eax
jne 0x457420
lea ecx, [esp + 0x38]
call fcn.00403630
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x6f0], 0x1d
call fcn.00407a10
cmp dword [esp + 0x4c], 8
jb 0x457420
mov eax, dword [esp + 0x38]
push eax
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x6f0], 0x1e
xor ecx, ecx
push 1
mov word [esp + 0xc8], cx
push 0x5118c8
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], eax
call fcn.00408810
lea edx, [esp + 0xc4]
push edx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x74]
mov byte [esp + 0x6f4], 0x1f
call fcn.0040b6c0
add esp, 4
mov byte [esp + 0x6f0], 0x1e
cmp dword [esp + 0xd8], 8
jb 0x4574a7
mov eax, dword [esp + 0xc4]
push eax
call fcn.004bb4d8
add esp, 4
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4574d3
push 0xffffffffffffffff
lea eax, [ebx + 0x1c]
push 0
push eax
jmp 0x4574dc
test eax, eax
je 0x4574e5
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x7c]
call fcn.004082e0
cmp dword [esp + 0x80], 0
jne 0x4574ff
push 8
push 0x51ac20
lea ecx, [esp + 0x78]
call fcn.00408810
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x74]
call fcn.0045ba50
add esp, 4
mov edi, eax
mov esi, 0x54d690
mov byte [esp + 0x6f0], 0x20
call fcn.004015f0
mov byte [esp + 0x6f0], 0x1e
cmp dword [esp + 0x4c], 0x10
jb 0x457540
mov edx, dword [esp + 0x38]
push edx
call fcn.004bb4d8
add esp, 4
push 0xffffffffffffffff
push 0
push 0x54d674
mov ecx, 0x54d6ac
call fcn.004014b0
push 0xffffffffffffffff
push 0
push 0x54d690
mov ecx, 0x54d6c8
call fcn.004014b0
cmp dword [ebp + 8], 0
jne 0x45792e
mov edx, 0x54d674
lea ecx, [esp + 0xa8]
call fcn.00403940
push 0
mov ecx, eax
lea esi, [esp + 0x90]
mov byte [esp + 0x6f4], 0x21
call fcn.0040a7a0
add esp, 4
mov byte [esp + 0x6f0], 0x23
cmp dword [esp + 0xbc], 8
jb 0x4575be
mov eax, dword [esp + 0xa8]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], cx
cmp dword [esp + 0x9c], ecx
je 0x4576f5
push 0x5118c8
lea ebx, [ecx + 1]
lea edi, [esp + 0x90]
call fcn.004100a0
cmp eax, 0xffffffff
je 0x4576f1
push eax
push 0
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.00407470
mov edi, eax
lea esi, [esp + 0x8c]
mov byte [esp + 0x6f0], 0x24
call fcn.00407a10
mov bl, 0x23
mov byte [esp + 0x6f0], bl
cmp dword [esp + 0x4c], 8
jb 0x45764a
mov eax, dword [esp + 0x38]
push eax
call fcn.004bb4d8
add esp, 4
push 1
push 0
push 0x5118c8
lea ecx, [esp + 0x98]
call fcn.004139b0
cmp eax, 0xffffffff
je 0x4576ae
mov ecx, dword [esp + 0x9c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x98]
call fcn.00407470
mov edi, eax
lea esi, [esp + 0x8c]
mov byte [esp + 0x6f0], 0x25
call fcn.00407a10
lea ecx, [esp + 0xfc]
mov byte [esp + 0x6f0], bl
call fcn.00407bb0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x90]
call fcn.0045ba50
add esp, 4
mov edi, eax
mov esi, 0x54d6ac
mov byte [esp + 0x6f0], 0x26
call fcn.004015f0
mov byte [esp + 0x6f0], bl
cmp dword [esp + 0x4c], 0x10
jb 0x4576f1
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004bb4d8
add esp, 4
mov ebx, dword [esp + 0x1c]
mov edx, 0x54d6ac
lea ecx, [esp + 0xe0]
call fcn.00403940
mov ecx, eax
lea esi, [esp + 0xc4]
mov byte [esp + 0x6f0], 0x27
call fcn.0040a950
mov byte [esp + 0x6f0], 0x29
cmp dword [esp + 0xf4], 8
jb 0x45773e
mov edx, dword [esp + 0xe0]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [esp + 0xf4], 7
mov dword [esp + 0xf0], 0
mov word [esp + 0xe0], ax
cmp ebx, dword [esp + 0x20]
je 0x457785
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
push ecx
push edi
mov eax, ebx
mov ecx, edi
call fcn.0040c9c0
add esp, 8
mov esi, eax
call fcn.0040d350
mov dword [esp + 0x20], esi
push 1
xor edx, edx
push 0x5118c8
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], dx
call fcn.00408810
lea eax, [esp + 0xa8]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x6f4], 0x2a
call fcn.0040b6c0
add esp, 4
mov byte [esp + 0x6f0], 0x29
cmp dword [esp + 0xbc], 8
jb 0x4577fd
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.004bb4d8
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x457859
lea edx, [esp + 0x38]
add ecx, 0x1c
push edx
call fcn.0045ba50
add esp, 4
mov byte [esp + 0x6f0], 0x2b
mov edi, eax
mov esi, 0x54d6c8
call fcn.004015f0
mov byte [esp + 0x6f0], 0x29
cmp dword [esp + 0x4c], 0x10
jb 0x4578b9
mov eax, dword [esp + 0x38]
push eax
jmp 0x4578b1
cmp eax, 1
jbe 0x457875
lea edx, [esp + 0x38]
push edx
call fcn.0045ba50
add esp, 4
mov byte [esp + 0x6f0], 0x2c
jmp 0x457837
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xc8]
call fcn.0045ba50
add esp, 4
mov edi, eax
mov esi, 0x54d6c8
mov byte [esp + 0x6f0], 0x2d
call fcn.004015f0
mov byte [esp + 0x6f0], 0x29
cmp dword [esp + 0x4c], 0x10
jb 0x4578b9
mov edx, dword [esp + 0x38]
push edx
call fcn.004bb4d8
add esp, 4
cmp dword [0x54d6d8], 0
jne 0x4578d3
push 8
push str.official
mov ecx, 0x54d6c8
call fcn.00408040
mov esi, 8
cmp dword [esp + 0xd8], esi
jb 0x4578f1
mov eax, dword [esp + 0xc4]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], 0
mov word [esp + 0xc4], cx
cmp dword [esp + 0xa0], esi
jb 0x45792a
mov edx, dword [esp + 0x8c]
push edx
call fcn.004bb4d8
add esp, 4
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x457946
mov edi, dword [esp + 0x20]
mov eax, ebx
call fcn.0040d350
push ebx
call fcn.004bb4d8
add esp, 4
mov esi, 8
cmp dword [esp + 0x84], esi
jb 0x457961
mov eax, dword [esp + 0x70]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], cx
cmp dword [esp + 0x68], esi
jb 0x457991
mov edx, dword [esp + 0x54]
push edx
call fcn.004bb4d8
add esp, 4
mov ecx, dword [esp + 0x6e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.004bb4e3
mov esp, ebp
pop ebp
ret