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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
cmp byte [ecx + 0x413], 0
jne 0x4bd400
cmp dword [ecx + 0x400], 0
mov esi, ecx
je 0x4bd3e4
lea edi, [esp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.004bceaf
cmp byte [edi], 4
je 0x4bd26e
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x4bd3eb
mov eax, dword [esi + 0x404]
test eax, eax
je 0x4bd3e4
mov edi, dword [esi + 0x40c]
lea ecx, [esi + 0x410]
push 3
pop ebx
mov edx, ebx
push 0x58ae48
push eax
call fcn.00463bf5
pop ecx
pop ecx
mov ecx, eax
mov ebp, edx
mov eax, edx
xor edx, edx
div ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 4], ecx
shl eax, 2
test edx, edx
je 0x4bd2d3
cmp byte [edi], 0
je 0x4bd2e0
add eax, 4
setb cl
cmp ebp, 0xbfffffff
ja 0x4bd414
test cl, cl
je 0x4bd323
jmp 0x4bd414
cmp ebp, 0xc0000000
jb 0x4bd323
jmp 0x4bd414
cmp edx, 1
je 0x4bd312
cmp edx, 2
je 0x4bd315
lea ecx, [esp + 0xc]
mov eax, esp
mov edx, 0x53c498
mov dword [ecx], 0x53c490
mov dword [ecx + 4], 1
and dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
and dword [ecx + 0xc], 0
call fcn.00535f60
push 2
pop ebx
cmp ebp, 0xbfffffff
ja 0x4bd414
or eax, ebx
cmp eax, 0x401
jae 0x4bd426
xor ebx, ebx
mov ebp, edi
xor ecx, ecx
mov dword [esp + 8], eax
mov edx, eax
push 0x58afcc
push 0x400
push esi
call fcn.00463c35
add esp, 0xc
mov edi, edx
mov edx, dword [esp + 4]
mov ecx, ebp
mov dword [esp + 4], edi
push edi
mov dword [esp + 0x28], eax
push eax
push dword [esp + 0x30]
call fcn.0042154a
add esp, 0xc
cmp byte [ebp], 0
je 0x4bd3b9
mov edx, dword [esp + 0x24]
mov edi, eax
mov ecx, eax
push 0x58aee0
push dword [esp + 8]
call fcn.0047d17f
pop ecx
pop ecx
mov ebp, dword [esp + 8]
mov ecx, edi
neg ecx
and ecx, 3
cmp ecx, ebx
je 0x4bd3a3
cmp edx, ebx
je 0x4bd408
mov byte [eax + ebx], 0x3d
inc ebx
jmp 0x4bd394
add edi, ecx
jae 0x4bd3bd
push 0x2a
pop edx
mov ecx, 0x58aef0
push 0x58af1c
call fcn.005363f0
mov ebp, dword [esp + 8]
lea edi, [esp + 0xc]
mov edx, esi
mov dword [esi + 0x408], ebp
mov ecx, edi
call fcn.004bceaf
cmp byte [edi], 4
je 0x4bd3dd
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x4bd3eb
and dword [esi + 0x404], 0
mov byte [esp + 0xc], 4
jmp 0x4bd3f7
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
call fcn.004741e2
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edx
push 0x53c4a8
call fcn.00535ff0
push 0x2b
pop edx
mov ecx, 0x58af2c
push 0x58afbc
call fcn.005363f0
mov eax, esp
push 0x16
pop edx
mov ecx, str.buffer_is_large_enough
push 0x58ae70
push 0x58960c
push eax
call fcn.00536370
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
lea eax, [esi + 0x90]
mov edx, dword [ebp + 0xc]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5052e0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edx]
test eax, eax
mov dword [esi + 8], eax
je 0x4bd6bc
mov eax, dword [ebp + 0x10]
and dword [esi + 0x98], 0
mov dword [esi + 0x18], 2
mov byte [esi + 7], 1
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
call fcn.004f0972
and word [esi + 0x30], 0
cmp al, 2
mov byte [esi + 0x32], 0
jne 0x4bd4c6
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
jmp 0x4bd4ee
lea ecx, [esi + 0x30]
mov byte [esi + 7], 1
mov dword [esi + 0xc], eax
call fcn.004f09d8
mov ecx, dword [esi + 0xc]
test cl, 1
jne 0x4bd5bb
mov eax, ecx
shr eax, 0x10
mov dword [esi + 0x10], eax
mov al, ch
mov dword [esi + 0xc], eax
mov edx, dword [esi + 8]
lea ecx, [esi + 0x18]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x98], 1
push dword [esi + 0x14]
push ecx
push edx
call eax
add esp, 0xc
mov ecx, dword [esi + 0x18]
movsd xmm0, qword [esi + 0x1c]
mov edx, dword [esi + 0x2c]
xor eax, eax
mov byte [esi + 7], 0
mov dword [esi + 8], ecx
cmp ecx, 2
movzx ecx, byte [esi + 0xc]
movsd qword [esi + 0x68], xmm0
movsd xmm0, qword [esi + 0x24]
mov dword [esi + 0x78], edx
movzx edx, byte [esi + 0x10]
cmovne ecx, eax
and dword [esi + 0x98], 0
movsd qword [esi + 0x70], xmm0
call fcn.004f0952
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 8]
cmp ecx, 2
je 0x4bd5cd
movsd xmm0, qword [esi + 0x68]
movsd xmm1, qword [esi + 0x70]
mov eax, dword [esi + 0x78]
test ecx, ecx
mov dword [esi + 0x30], ecx
movsd qword [esi + 0x34], xmm0
movsd qword [esi + 0x3c], xmm1
mov dword [esi + 0x44], eax
je 0x4bd5d8
movsd xmm0, qword [esi + 0x38]
movsd xmm1, qword [esi + 0x40]
movsd qword [esi + 0x48], xmm0
movsd qword [esi + 0x50], xmm1
mov eax, dword [esi + 0x48]
test eax, eax
mov dword [esi + 8], eax
jne 0x4bd6ce
lea edx, [esi + 0x38]
lea ecx, [esi + 0x18]
mov dword [esi + 0x98], 2
call fcn.004506e6
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
xor edi, edi
jmp 0x4bd5e8
or dword [esi + 0x98], 0xffffffff
lea ecx, [esi + 0x18]
call fcn.00453c63
mov edx, dword [ebp + 8]
mov dword [edx], 2
jmp 0x4bd6a6
mov edi, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
test edi, edi
je 0x4bd5b7
mov ebx, dword [esi + 0x40]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x58], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x98], 3
call fcn.004a6da0
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4bd665
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x98], 4
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x24], eax
push 0x10
pop ecx
push 4
pop edx
call fcn.004ebf96
movsd xmm0, qword [esi + 0x18]
movsd xmm1, qword [esi + 0x20]
xor edx, edx
mov ecx, 0x58c49c
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x4bd699
mov eax, dword [esi + 8]
mov dword [esi + 0x98], 5
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
push 8
pop ecx
push 4
pop edx
call fcn.004ebf96
mov ecx, dword [esi + 8]
xor edx, edx
inc edx
mov dword [eax], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 4], ecx
mov ecx, 0x587ad0
mov edi, dword [ebp + 8]
mov dword [edi], edx
mov edx, edi
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
mov eax, edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x36
pop edx
mov ecx, 0x587b7c
push 0x587bb4
call fcn.00536efc
lea eax, [esi + 0x48]
lea edx, [esi + 0x80]
lea ecx, [esi + 0x18]
mov dword [esi + 0x98], 2
mov dword [edx], eax
xor eax, eax
mov dword [ecx], str.gai_background_task_failed:
mov dword [edx + 4], 0x4f5d55
inc eax
mov dword [ecx + 4], eax
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edx
mov edx, 0x5754f0
mov dword [ecx + 0xc], eax
call fcn.00535f60
ud2