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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c401
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
mov eax, 3
movups xmmword [esi], xmm0
mov edi, dword [esi + 0x10]
mov word [esi + 0xe], ax
mov eax, dword [ecx]
mov dword [ebp - 0x6c], edi
mov eax, dword [eax + 0x1c]
call eax
mov dword [ebp - 0x68], eax
xor edx, edx
mov ecx, 0x52d49c
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
cmp dword [ecx - 4], eax
jne 0x4f23fb
mov edi, dword [ebp - 0x68]
mov eax, dword [ecx]
cmp eax, dword [edi + 8]
mov edi, dword [ebp - 0x6c]
je 0x4f24ce
mov eax, dword [ebp - 0x60]
inc edx
add ecx, 0x10
cmp edx, 0x1c
jb 0x4f23e2
mov edx, str.invalid
cmp byte [edx], 0
mov ecx, edx
je 0x4f2416
inc ecx
cmp byte [ecx], 0
jne 0x4f2410
sub esp, 8
sub ecx, edx
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x20]
mov dword [eax], edx
call fcn.00402130
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
lea ecx, [ebp - 0x30]
mov dword [eax], 0x52dc2c
mov dword [eax + 4], 4
call fcn.00402130
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
xorps xmm0, xmm0
mov eax, 3
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x42], ax
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
lea ecx, [ebp - 0x50]
push edi
mov dword [eax], str.port
mov dword [eax + 4], 4
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x18]
call fcn.00402760
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x4f24dc
sub esp, 8
mov eax, ecx
cmp byte [ecx], 0
mov edx, esp
je 0x4f24b6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4f24b0
sub eax, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x40]
mov dword [edx + 4], eax
call fcn.00402130
mov edx, eax
mov ecx, 1
jmp 0x4f24eb
shl edx, 4
mov edx, dword [edx + 0x52d490]
jmp 0x4f2409
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov ecx, 2
lea edx, [ebp - 0x30]
sub esp, 8
mov dword [ebp - 0x64], ecx
mov eax, esp
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x20]
mov dword [eax], str.access_token
mov dword [eax + 4], 0xc
call fcn.00402130
push edi
mov eax, ecx
mov dword [ebp - 4], 5
push edx
push eax
lea ecx, [ebp - 0x50]
call fcn.00402520
mov edx, dword [ebp - 0x58]
test dl, 2
je 0x4f252a
and edx, 0xfffffffd
test dl, 1
je 0x4f2532
and edx, 0xfffffffe
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4f2575
sub esp, 8
mov eax, ecx
cmp byte [ecx], 0
mov dword [ebp - 0x64], esp
je 0x4f2556
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4f2550
mov edi, dword [ebp - 0x64]
sub eax, ecx
mov dword [edi], ecx
mov ecx, edi
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x40]
call fcn.00402130
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x6c]
or edx, 4
jmp 0x4f2585
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
lea eax, [ebp - 0x30]
or edx, 8
mov dword [ebp - 0x60], eax
sub esp, 8
mov dword [ebp - 0x64], edx
mov eax, esp
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x20]
mov dword [eax], 0x52dc4c
mov dword [eax + 4], 2
call fcn.00402130
push edi
push dword [ebp - 0x60]
mov eax, ecx
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0x50]
call fcn.00402520
mov edx, dword [ebp - 0x58]
test dl, 8
je 0x4f25c6
and edx, 0xfffffff7
test dl, 4
je 0x4f25ce
and edx, 0xfffffffb
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x4f260a
sub esp, 8
mov eax, ecx
cmp byte [ecx], 0
mov dword [ebp - 0x60], esp
je 0x4f25eb
inc eax
cmp byte [eax], 0
jne 0x4f25e5
mov edi, dword [ebp - 0x60]
sub eax, ecx
mov dword [edi], ecx
mov ecx, edi
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x40]
call fcn.00402130
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x6c]
or edx, 0x10
jmp 0x4f261a
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
lea eax, [ebp - 0x30]
or edx, 0x20
mov dword [ebp - 0x60], eax
sub esp, 8
mov dword [ebp - 0x64], edx
mov eax, esp
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x20]
mov dword [eax], 0x52dc50
mov dword [eax + 4], 9
call fcn.00402130
push edi
push dword [ebp - 0x60]
mov eax, ecx
mov dword [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x50]
call fcn.00402520
mov eax, dword [ebp - 0x58]
test al, 0x20
je 0x4f265d
and eax, 0xffffffdf
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 2
test al, 0x10
je 0x4f266e
and eax, 0xffffffef
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x30]
sub esp, 8
mov dl, byte [eax + 0x11]
mov eax, esp
mov dword [eax], str.ipv6
mov dword [eax + 4], 4
call fcn.00402130
xor eax, eax
xorps xmm0, xmm0
test dl, dl
movups xmmword [ebp - 0x20], xmm0
setne al
add eax, 9
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xd
push eax
mov eax, ecx
lea ecx, [ebp - 0x50]
push eax
call fcn.00402520
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x30]
sub esp, 8
mov dl, byte [eax + 0x12]
mov eax, esp
mov dword [eax], str.restricted
mov dword [eax + 4], 0xa
call fcn.00402130
xor eax, eax
xorps xmm0, xmm0
test dl, dl
movups xmmword [ebp - 0x20], xmm0
setne al
add eax, 9
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xf
push eax
mov eax, ecx
lea ecx, [ebp - 0x50]
push eax
call fcn.00402520
sub esp, 8
lea ecx, [ebp - 0x30]
mov eax, esp
mov dword [eax], 0x52dc70
mov dword [eax + 4], 3
call fcn.00402130
push edi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x10
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x30]
sub esp, 8
mov dl, byte [eax + 0x13]
mov eax, esp
mov dword [eax], str.autosave
mov dword [eax + 4], 8
call fcn.00402130
xor eax, eax
xorps xmm0, xmm0
test dl, dl
movups xmmword [ebp - 0x20], xmm0
setne al
add eax, 9
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x12
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
mov eax, dword [ebp - 0x5c]
mov ecx, esi
mov byte [ebp - 4], 2
push edi
push dword [eax + 0x70]
sub esp, 8
mov eax, esp
mov dword [eax], 0x52dc80
mov dword [eax + 4], 2
call fcn.0040a3b0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x30]
sub esp, 8
mov dl, byte [eax + 0x14]
mov eax, esp
mov dword [eax], str.background
mov dword [eax + 4], 0xa
call fcn.00402130
xor eax, eax
xorps xmm0, xmm0
test dl, dl
movups xmmword [ebp - 0x20], xmm0
setne al
add eax, 9
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x14
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
sub esp, 8
lea ecx, [ebp - 0x30]
mov eax, esp
mov dword [eax], str.colors
mov dword [eax + 4], 6
call fcn.00402130
xor eax, eax
xorps xmm0, xmm0
cmp byte [0x53ca64], al
movups xmmword [ebp - 0x20], xmm0
setne al
add eax, 9
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x16
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
mov edx, dword [eax + 0x88]
mov ecx, dword [eax + 0x8c]
mov eax, edx
and eax, ecx
cmp eax, 0xffffffff
je 0x4f28a0
push ecx
push edx
push str.0x_llX
push 0x13
push 0x54589c
call fcn.00401160
add esp, 0xc
mov eax, 0x54589c
cmp byte [0x54589c], 0
mov ecx, esp
je 0x4f2876
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4f2870
sub eax, 0x54589c
mov dword [ecx], 0x54589c
mov dword [ecx + 4], eax
sub esp, 8
mov eax, esp
mov ecx, esi
push edi
mov dword [eax], 0x52dca0
mov dword [eax + 4], 0xc
call fcn.00402420
jmp 0x4f28d4
sub esp, 8
lea ecx, [ebp - 0x20]
mov eax, esp
mov dword [eax], str.cpu_affinity
mov dword [eax + 4], 0xc
call fcn.00402130
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
push edi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x18
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
mov eax, dword [ebp - 0x5c]
xorps xmm0, xmm0
mov ecx, dword [eax + 0x80]
cmp ecx, 0xffffffff
je 0x4f2910
mov eax, ecx
test ecx, ecx
cdq
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov eax, 0xb6
mov dword [ebp - 0x1c], edx
mov edx, 0x1f6
cmovns eax, edx
mov word [ebp - 0x12], ax
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x20]
or ecx, 0x40
jmp 0x4f2920
movups xmmword [ebp - 0x30], xmm0
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x30]
or ecx, 0x80
sub esp, 8
mov dword [ebp - 0x64], ecx
mov eax, esp
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x40]
mov dword [eax], str.cpu_priority
mov dword [eax + 4], 0xc
call fcn.00402130
push edi
mov eax, ecx
mov dword [ebp - 4], 0x1b
push edx
push eax
mov ecx, esi
call fcn.00402520
mov eax, dword [ebp - 0x58]
test al, al
jns 0x4f2962
and eax, 0xffffff7f
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 2
test al, 0x40
je 0x4f2973
and eax, 0xffffffbf
mov dword [ebp - 0x58], eax
sub esp, 8
mov ecx, esi
mov eax, esp
push edi
mov dword [eax], 0x52dcd0
mov dword [eax + 4], 0xc
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x1c]
call fcn.00402760
sub esp, 8
mov ecx, esi
mov eax, esp
push edi
mov dword [eax], str.huge_pages
mov dword [eax + 4], 0xa
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + 0x78]
mov byte [ebp - 0x68], al
push dword [ebp - 0x68]
call fcn.004026c0
mov eax, dword [ebp - 0x5c]
xorps xmm0, xmm0
mov eax, dword [eax + 0x6c]
test eax, eax
jne 0x4f29d8
movups xmmword [ebp - 0x40], xmm0
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x40]
or ecx, 0x100
jmp 0x4f29f4
dec eax
neg eax
movups xmmword [ebp - 0x20], xmm0
sbb eax, eax
add eax, 0xa
mov word [ebp - 0x12], ax
mov ecx, dword [ebp - 0x58]
lea edx, [ebp - 0x20]
or ecx, 0x200
sub esp, 8
mov dword [ebp - 0x64], ecx
mov eax, esp
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x30]
mov dword [eax], str.hw_aes
mov dword [eax + 4], 6
call fcn.00402130
push edi
mov eax, ecx
mov dword [ebp - 4], 0x1e
push edx
push eax
mov ecx, esi
call fcn.00402520
mov edx, dword [ebp - 0x58]
test edx, 0x200
je 0x4f2a38
and edx, 0xfffffdff
test edx, 0x100
je 0x4f2a46
and edx, 0xfffffeff
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x4f2a88
sub esp, 8
mov eax, ecx
cmp byte [ecx], 0
mov dword [ebp - 0x60], esp
je 0x4f2a66
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4f2a60
mov edi, dword [ebp - 0x60]
sub eax, ecx
mov dword [edi], ecx
mov ecx, edi
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x20]
call fcn.00402130
mov dword [ebp - 0x60], eax
mov edi, dword [ebp - 0x6c]
or edx, 0x400
jmp 0x4f2a9b
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
or edx, 0x800
mov dword [ebp - 0x60], eax
sub esp, 8
mov dword [ebp - 0x64], edx
mov eax, esp
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x30]
mov dword [eax], str.log_file
mov dword [eax + 4], 8
call fcn.00402130
push edi
push dword [ebp - 0x60]
mov eax, ecx
mov dword [ebp - 4], 0x21
push eax
mov ecx, esi
call fcn.00402520
mov eax, dword [ebp - 0x58]
test eax, 0x800
je 0x4f2ae2
and eax, 0xfffff7ff
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 2
test eax, 0x400
je 0x4f2af8
and eax, 0xfffffbff
mov dword [ebp - 0x58], eax
sub esp, 8
mov dword [ebp - 0x68], eax
mov eax, esp
mov ecx, esi
push edi
mov dword [eax], str.max_cpu_usage
mov dword [eax + 4], 0xd
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x7c]
call fcn.00402760
mov byte [ebp - 4], 0x22
xorps xmm0, xmm0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
or ecx, 0x4000
mov eax, 4
mov dword [ebp - 0x64], ecx
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x58], eax
cmp ecx, eax
je 0x4f2b7e
mov edi, ecx
push esi
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004e6350
push dword [ebp - 0x54]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x23
push eax
call fcn.00402b80
add edi, 0x54
mov byte [ebp - 4], 0x22
cmp edi, dword [ebp - 0x58]
jne 0x4f2b53
mov edi, dword [ebp - 0x6c]
sub esp, 8
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [eax], str.pools
mov dword [eax + 4], 5
call fcn.00402130
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x24
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
sub esp, 8
mov byte [ebp - 4], 2
mov eax, esp
mov ecx, esi
push edi
mov dword [eax], str.print_time
mov dword [eax + 4], 0xa
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x20]
call fcn.00402760
sub esp, 8
mov ecx, esi
mov eax, esp
push edi
mov dword [eax], str.retries
mov dword [eax + 4], 7
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x24]
call fcn.00402760
sub esp, 8
mov ecx, esi
mov eax, esp
push edi
mov dword [eax], str.retry_pause
mov dword [eax + 4], 0xb
mov eax, dword [ebp - 0x5c]
push dword [eax + 0x28]
call fcn.00402760
sub esp, 8
mov ecx, esi
mov eax, esp
push edi
mov dword [eax], str.safe
mov dword [eax + 4], 4
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax + 0x79]
push eax
call fcn.004026c0
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0xac], 1
je 0x4f2ccd
xorps xmm0, xmm0
mov eax, 4
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x12], ax
mov byte [ebp - 4], 0x25
mov eax, dword [ecx + 0xa0]
mov ecx, dword [ecx + 0xa4]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], ecx
cmp eax, ecx
je 0x4f2c9e
nop dword [eax + eax]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
push edi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x26
call fcn.00402b80
mov eax, dword [ebp - 0x60]
add eax, 4
mov byte [ebp - 4], 0x25
mov dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0x54]
jne 0x4f2c70
sub esp, 8
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [eax], 0x52dd40
mov dword [eax + 4], 7
call fcn.00402130
push edi
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x27
push eax
mov eax, ecx
mov ecx, esi
push eax
call fcn.00402520
jmp 0x4f2cf7
sub esp, 8
mov eax, esp
push edi
mov dword [eax], 0x52dd48
mov dword [eax + 4], 7
mov eax, dword [ecx + 0xa4]
sub eax, dword [ecx + 0xa0]
mov ecx, esi
sar eax, 2
push eax
call fcn.00402760
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x4f2d31
sub esp, 8
mov eax, ecx
cmp byte [ecx], 0
mov edx, esp
je 0x4f2d16
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4f2d10
sub eax, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x20]
mov dword [edx + 4], eax
call fcn.00402130
mov edx, eax
mov eax, dword [ebp - 0x68]
or eax, 0x1000
jmp 0x4f2d43
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x40]
or eax, 0x2000
sub esp, 8
mov dword [ebp - 0x64], eax
mov eax, esp
lea ecx, [ebp - 0x30]
mov dword [eax], str.user_agent
mov dword [eax + 4], 0xa
call fcn.00402130
push edi
mov eax, ecx
mov dword [ebp - 4], 0x2a
push edx
push eax
mov ecx, esi
call fcn.00402520
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
mov ecx, esi
push edi
mov dword [eax], str.watch
mov dword [eax + 4], 5
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax + 0x17]
push eax
call fcn.004026c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3717
mov esp, ebp
pop ebp
ret 4