Function at 0x42db80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x51e7d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x565e78]
push ebx
push ebp
mov dword [esp + 0xc0], eax
xor ebx, ebx
push esi
mov eax, 0x56b5e8
push edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42dbc5
sub eax, ecx
push eax
push 0x56b5e8
lea ecx, [esp + 0x4c]
call fcn.00401b10
push 0xb
push str.config.ini
lea ecx, [esp + 0x4c]
mov dword [esp + 0xdc], ebx
call fcn.00407970
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0xd4], 1
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xd4], 2
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xd4], 3
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov al, byte [esp + 0xe0]
test al, al
mov byte [esp + 0xd4], 4
jne 0x42dee2
xor edx, edx
mov dword [esp + 0x18], edx
mov edi, edi
mov edi, dword [esp + 0xdc]
mov ecx, dword [edi + 0x20c]
cmp ecx, ebx
je 0x42e11b
mov eax, dword [edi + 0x210]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x42e11b
mov eax, ecx
mov eax, dword [eax + edx*4]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push str.areadsvr_u
push eax
call fcn.00405820
xor esi, esi
add esp, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
xor ebp, ebp
mov eax, dword [edi + 0x23c]
cmp eax, esi
je 0x42de9c
mov ecx, dword [edi + 0x240]
sub ecx, eax
mov eax, 0x78787879
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x42de9c
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
jmp 0x42dd00
mov esi, dword [edi + 0x23c]
mov eax, dword [esi + ebp + 0x38]
test eax, eax
je 0x42de89
mov ecx, dword [esi + ebp + 0x3c]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
mov ecx, dword [esp + 0x2c]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x42de89
mov esi, dword [esi + ebp + 0x38]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x60]
lea edi, [ecx + esi]
push edx
call fcn.0041ddc0
mov byte [esp + 0xd4], 5
cmp dword [esp + 0x84], 2
jne 0x42de00
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x80], eax
jne 0x42de00
push ebx
lea ecx, [esp + 0x24]
push str.name_d
push ecx
call fcn.00405820
push ebx
lea edx, [esp + 0x34]
push str.url_d
push edx
call fcn.00405820
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
mov ebx, 0x10
add esp, 0x18
cmp eax, ebx
jae 0x42dda9
lea ecx, [esp + 0x48]
cmp dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x68]
jae 0x42ddb7
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call edi
cmp dword [esp + 0x5c], ebx
mov ecx, dword [esp + 0x48]
jae 0x42ddd9
lea ecx, [esp + 0x48]
cmp dword [esp + 0xa0], ebx
mov eax, dword [esp + 0x8c]
jae 0x42ddf0
lea eax, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call edi
inc dword [esp + 0x1c]
jmp 0x42de05
mov ebx, 0x10
mov byte [esp + 0xd4], 4
cmp dword [esp + 0xa0], ebx
jb 0x42de26
mov edx, dword [esp + 0x8c]
push edx
call fcn.004fa776
add esp, 4
mov eax, dword [esp + 0x7c]
xor edi, edi
cmp eax, ebx
mov esi, 0xf
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
jb 0x42de58
mov eax, dword [esp + 0x68]
push eax
call fcn.004fa776
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
inc ecx
add eax, 0x58
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x7c], esi
mov byte [esp + 0x68], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jmp 0x42dd00
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x44
mov dword [esp + 0x10], ecx
xor esi, esi
jmp 0x42dcc0
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x42deab
lea eax, [esp + 0x48]
push eax
push 0xa
lea ecx, [esp + 0xc0]
push ecx
push ebx
call fcn.004b4957
mov edx, dword [esp + 0x24]
add esp, 0xc
push eax
push str.count
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
xor ebx, ebx
mov edx, eax
jmp 0x42dc70
mov dword [esp + 0x1c], ebx
xor ebp, ebp
jmp 0x42def0
mov esi, dword [esp + 0xdc]
mov eax, dword [esi + 0x23c]
cmp eax, ebx
je 0x42e11b
mov ecx, dword [esi + 0x240]
sub ecx, eax
mov eax, 0x78787879
imul ecx
mov ecx, dword [esp + 0x1c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x42e11b
mov eax, dword [esi + 0x23c]
mov eax, dword [eax + ebp]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push str.areadsvr_u
push eax
call fcn.00405820
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [esi + 0x23c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + ebp + 0x38]
test eax, eax
je 0x42e0d4
mov ecx, dword [esi + ebp + 0x3c]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jae 0x42e0d4
mov esi, dword [esi + ebp + 0x38]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x60]
lea edi, [ecx + esi]
push edx
call fcn.0041ddc0
mov byte [esp + 0xd4], 6
cmp dword [esp + 0x84], 2
jne 0x42e056
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x80], eax
jne 0x42e056
push ebx
lea ecx, [esp + 0x24]
push str.name_d
push ecx
call fcn.00405820
push ebx
lea edx, [esp + 0x34]
push str.url_d
push edx
call fcn.00405820
mov ecx, dword [esp + 0x74]
mov eax, 0x10
add esp, 0x18
cmp ecx, eax
mov ecx, dword [esp + 0x48]
jae 0x42dffd
lea ecx, [esp + 0x48]
cmp dword [esp + 0x7c], eax
mov eax, dword [esp + 0x68]
jae 0x42e00b
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call edi
mov ecx, dword [esp + 0x5c]
mov eax, 0x10
cmp ecx, eax
mov ecx, dword [esp + 0x48]
jae 0x42e034
lea ecx, [esp + 0x48]
cmp dword [esp + 0xa0], eax
mov eax, dword [esp + 0x8c]
jae 0x42e04b
lea eax, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call edi
inc ebx
mov byte [esp + 0xd4], 4
cmp dword [esp + 0xa0], 0x10
jb 0x42e078
mov edx, dword [esp + 0x8c]
push edx
call fcn.004fa776
add esp, 4
mov eax, dword [esp + 0x7c]
xor esi, esi
cmp eax, 0x10
mov edi, 0xf
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov byte [esp + 0x8c], 0
jb 0x42e0ab
mov eax, dword [esp + 0x68]
push eax
call fcn.004fa776
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x7c], edi
mov byte [esp + 0x68], 0
mov dword [esp + 0x18], ecx
add eax, 0x58
jmp 0x42df50
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x42e0e3
lea eax, [esp + 0x48]
push eax
push 0xa
lea ecx, [esp + 0xc0]
push ecx
push ebx
call fcn.004b4957
mov edx, dword [esp + 0x24]
add esp, 0xc
push eax
push str.count
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x1c]
inc ecx
add ebp, 0x44
mov dword [esp + 0x1c], ecx
xor ebx, ebx
jmp 0x42def0
mov byte [esp + 0xd4], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x42e145
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0xc4], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e16b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0xc4], 1
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x4c], 0x10
jb 0x42e1a5
mov eax, dword [esp + 0x38]
push eax
call fcn.004fa776
add esp, 4
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xb8]
call fcn.004b6cac
add esp, 0xc8
ret 8